|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.service.internal.BootstrapServiceRegistryImpl
public class BootstrapServiceRegistryImpl
ServiceRegistry implementation containing specialized "bootstrap" services, specifically:
| Constructor Summary | |
|---|---|
BootstrapServiceRegistryImpl()
|
|
BootstrapServiceRegistryImpl(boolean autoCloseRegistry,
ClassLoaderService classLoaderService,
IntegratorService integratorService)
|
|
BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService,
IntegratorService integratorService)
|
|
BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService,
LinkedHashSet<Integrator> providedIntegrators)
|
|
| Method Summary | ||
|---|---|---|
|
configureService(ServiceBinding<R> binding)
|
|
void |
deRegisterChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback. |
|
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)
|
|
boolean |
isActive()
|
|
|
locateServiceBinding(Class<R> serviceRole)
Locate the binding for the given role. |
|
void |
registerChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback. |
|
|
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(boolean autoCloseRegistry,
ClassLoaderService classLoaderService,
IntegratorService integratorService)
public BootstrapServiceRegistryImpl(ClassLoaderService classLoaderService,
LinkedHashSet<Integrator> providedIntegrators)
| Method Detail |
|---|
public <R extends Service> R getService(Class<R> serviceRole)
ServiceRegistryBasicServiceInitiator 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 ServiceRegistryR - The service role typeserviceRole - The service role
public <R extends Service> ServiceBinding<R> locateServiceBinding(Class<R> serviceRole)
ServiceRegistryImplementor
locateServiceBinding in interface ServiceRegistryImplementorR - generic return type.serviceRole - The service role for which to locate a binding.
nullpublic void destroy()
ServiceRegistryImplementor
destroy in interface ServiceRegistryImplementorpublic boolean isActive()
public ServiceRegistry getParentServiceRegistry()
ServiceRegistry
getParentServiceRegistry in interface ServiceRegistrypublic <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)
initiateService in interface ServiceBinding.ServiceLifecycleOwnerpublic <R extends Service> void configureService(ServiceBinding<R> binding)
configureService in interface ServiceBinding.ServiceLifecycleOwnerpublic <R extends Service> void injectDependencies(ServiceBinding<R> binding)
injectDependencies in interface ServiceBinding.ServiceLifecycleOwnerpublic <R extends Service> void startService(ServiceBinding<R> binding)
startService in interface ServiceBinding.ServiceLifecycleOwnerpublic <R extends Service> void stopService(ServiceBinding<R> binding)
stopService in interface ServiceBinding.ServiceLifecycleOwnerpublic void registerChild(ServiceRegistryImplementor child)
ServiceRegistryImplementor
registerChild in interface ServiceRegistryImplementorpublic void deRegisterChild(ServiceRegistryImplementor child)
ServiceRegistryImplementor
deRegisterChild in interface ServiceRegistryImplementor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||