public class SessionFactoryServiceRegistryImpl extends AbstractServiceRegistryImpl implements SessionFactoryServiceRegistry
ALLOW_CRAWLING
Constructor and Description |
---|
SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent,
SessionFactoryImplementor sessionFactory,
SessionFactoryOptions sessionFactoryOptions) |
Modifier and Type | Method and Description |
---|---|
<R extends Service> |
configureService(ServiceBinding<R> serviceBinding) |
<R extends Service> |
getService(Class<R> serviceRole)
Retrieve a service by role.
|
<R extends Service> |
initiateService(ServiceInitiator<R> serviceInitiator) |
createService, createServiceBinding, createServiceBinding, deRegisterChild, destroy, getParentServiceRegistry, injectDependencies, isActive, locateServiceBinding, locateServiceBinding, registerChild, registerService, startService, stopService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deRegisterChild, destroy, locateServiceBinding, registerChild
getParentServiceRegistry
public SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)
public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)
initiateService
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> void configureService(ServiceBinding<R> serviceBinding)
configureService
in interface ServiceBinding.ServiceLifecycleOwner
public <R extends Service> R getService(Class<R> serviceRole)
ServiceRegistry
ServiceInitiator
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
getService
in class AbstractServiceRegistryImpl
R
- The service role typeserviceRole
- The service roleCopyright © 2017 JBoss by Red Hat. All rights reserved.