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 new implementation.
Uniqueness is meant in the scope of the SearchFactory, as there is a single ServiceManager instance
in the SearchFactory.
Any service requested should be released using (@link #releaseService} when it's not needed anymore
to allow for a cleanup phase.
requestService
<T> T requestService(Class<? extends ServiceProvider<T>> serviceProviderClass,
BuildContext context)
releaseService
void releaseService(Class<? extends ServiceProvider<?>> serviceProviderClass)
stopServices
void stopServices()
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved