org.hibernate.search.engine
Interface ServiceManager
- All Known Implementing Classes:
- StandardServiceManager
public interface ServiceManager
The ServiceManager is used to manage uniqueness of services and runtime discovery of service implementations.
Uniqueness is meant in the scope of the SearchFactory, as there is a single ServiceManager instance
per SearchFactory.
Any service requested should be released using releaseService(Class) when it's not needed anymore.
requestService
<T> T requestService(Class<? extends ServiceProvider<T>> serviceProviderClass,
BuildContext context)
releaseService
void releaseService(Class<? extends ServiceProvider<?>> serviceProviderClass)
stopServices
void stopServices()
Copyright © 2006–2013 Hibernate. All rights reserved.