|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.service.internal.AbstractServiceRegistryImpl
public abstract class AbstractServiceRegistryImpl
Constructor Summary | |
---|---|
protected |
AbstractServiceRegistryImpl()
|
protected |
AbstractServiceRegistryImpl(boolean autoCloseRegistry)
|
|
AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry)
|
|
AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry,
boolean autoCloseRegistry)
|
protected |
AbstractServiceRegistryImpl(ServiceRegistryImplementor parent)
|
protected |
AbstractServiceRegistryImpl(ServiceRegistryImplementor parent,
boolean autoCloseRegistry)
|
Method Summary | ||
---|---|---|
protected
|
createService(ServiceBinding<R> serviceBinding)
|
|
protected
|
createServiceBinding(ProvidedService<R> providedService)
|
|
protected
|
createServiceBinding(ServiceInitiator<R> initiator)
|
|
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. |
|
|
injectDependencies(ServiceBinding<R> serviceBinding)
|
|
boolean |
isActive()
|
|
|
locateServiceBinding(Class<R> serviceRole)
Locate the binding for the given role. |
|
protected
|
locateServiceBinding(Class<R> serviceRole,
boolean checkParent)
|
|
void |
registerChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback. |
|
protected
|
registerService(ServiceBinding<R> serviceBinding,
R service)
|
|
|
startService(ServiceBinding<R> serviceBinding)
|
|
|
stopService(ServiceBinding<R> binding)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner |
---|
configureService, initiateService |
Constructor Detail |
---|
protected AbstractServiceRegistryImpl()
protected AbstractServiceRegistryImpl(boolean autoCloseRegistry)
protected AbstractServiceRegistryImpl(ServiceRegistryImplementor parent)
protected AbstractServiceRegistryImpl(ServiceRegistryImplementor parent, boolean autoCloseRegistry)
public AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry)
public AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry, boolean autoCloseRegistry)
Method Detail |
---|
protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator)
protected <R extends Service> void createServiceBinding(ProvidedService<R> providedService)
public ServiceRegistry getParentServiceRegistry()
ServiceRegistry
getParentServiceRegistry
in interface ServiceRegistry
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
protected <R extends Service> ServiceBinding<R> locateServiceBinding(Class<R> serviceRole, boolean checkParent)
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
protected <R extends Service> void registerService(ServiceBinding<R> serviceBinding, R service)
protected <R extends Service> R createService(ServiceBinding<R> serviceBinding)
public <R extends Service> void injectDependencies(ServiceBinding<R> serviceBinding)
injectDependencies
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void startService(ServiceBinding<R> serviceBinding)
startService
in interface ServiceBinding.ServiceLifecycleOwner
public boolean isActive()
public void destroy()
ServiceRegistryImplementor
destroy
in interface ServiceRegistryImplementor
public <R extends Service> void stopService(ServiceBinding<R> binding)
stopService
in interface ServiceBinding.ServiceLifecycleOwner
public void registerChild(ServiceRegistryImplementor child)
ServiceRegistryImplementor
registerChild
in interface ServiceRegistryImplementor
public 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 |