|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.service.internal.BootstrapServiceRegistryImpl
public class BootstrapServiceRegistryImpl
ServiceRegistry
implementation containing specialized "bootstrap" services, specifically:
Constructor Summary | |
---|---|
BootstrapServiceRegistryImpl()
|
|
BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService,
IntegratorService integratorService)
|
|
BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService,
LinkedHashSet<Integrator> providedIntegrators)
|
Method Summary | ||
---|---|---|
|
configureService(ServiceBinding<R> binding)
|
|
void |
destroy()
Release resources |
|
ServiceRegistry |
getParentServiceRegistry()
Retrieve this registry's parent registry. |
|
|
getService(Class<R> serviceRole)
Retrieve a service by role. |
|
|
initiateService(ServiceInitiator<R> serviceInitiator)
|
|
|
injectDependencies(ServiceBinding<R> binding)
|
|
|
locateServiceBinding(Class<R> serviceRole)
Locate the binding for the given role. |
|
|
startService(ServiceBinding<R> binding)
|
|
|
stopService(ServiceBinding<R> binding)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapServiceRegistryImpl()
public BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService, IntegratorService integratorService)
public BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService, LinkedHashSet<Integrator> providedIntegrators)
Method Detail |
---|
public <R extends Service> R getService(Class<R> serviceRole)
ServiceRegistry
BasicServiceInitiator
is registered for
this service role, the service will be initialized and returned.
NOTE: We cannot return <R extends Service<T>>
here because the service might come from the parent...
getService
in interface ServiceRegistry
R
- The service role typeserviceRole
- The service role
public <R extends Service> ServiceBinding<R> locateServiceBinding(Class<R> serviceRole)
ServiceRegistryImplementor
locateServiceBinding
in interface ServiceRegistryImplementor
R
- generic return type.serviceRole
- The service role for which to locate a binding.
null
public void destroy()
ServiceRegistryImplementor
destroy
in interface ServiceRegistryImplementor
public ServiceRegistry getParentServiceRegistry()
ServiceRegistry
getParentServiceRegistry
in interface ServiceRegistry
public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)
initiateService
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void configureService(ServiceBinding<R> binding)
configureService
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void injectDependencies(ServiceBinding<R> binding)
injectDependencies
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void startService(ServiceBinding<R> binding)
startService
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void stopService(ServiceBinding<R> binding)
stopService
in interface ServiceBinding.ServiceLifecycleOwner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |