public class SessionFactoryServiceRegistryImpl extends AbstractServiceRegistryImpl implements SessionFactoryServiceRegistry, SessionFactoryServiceInitiatorContext
ALLOW_CRAWLING
Constructor and Description |
---|
SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent,
List<SessionFactoryServiceInitiator> initiators,
List<ProvidedService> providedServices,
SessionFactoryImplementor sessionFactory,
BootstrapContext bootstrapContext,
SessionFactoryOptions sessionFactoryOptions) |
Modifier and Type | Method and Description |
---|---|
<R extends Service> |
configureService(ServiceBinding<R> serviceBinding) |
BootstrapContext |
getBootstrapContext() |
<R extends Service> |
getService(Class<R> serviceRole)
Retrieve a service by role.
|
ServiceRegistryImplementor |
getServiceRegistry() |
SessionFactoryImplementor |
getSessionFactory() |
SessionFactoryOptions |
getSessionFactoryOptions() |
<R extends Service> |
initiateService(ServiceInitiator<R> serviceInitiator) |
createService, createServiceBinding, createServiceBinding, deRegisterChild, destroy, getParentServiceRegistry, injectDependencies, isActive, locateServiceBinding, locateServiceBinding, registerChild, registerService, startService, stopService, visitServiceBindings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, deRegisterChild, destroy, locateServiceBinding, registerChild
getParentServiceRegistry, requireService
public SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, List<SessionFactoryServiceInitiator> initiators, List<ProvidedService> providedServices, SessionFactoryImplementor sessionFactory, BootstrapContext bootstrapContext, 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 BootstrapContext getBootstrapContext()
getBootstrapContext
in interface SessionFactoryServiceInitiatorContext
public SessionFactoryImplementor getSessionFactory()
getSessionFactory
in interface SessionFactoryServiceInitiatorContext
public SessionFactoryOptions getSessionFactoryOptions()
getSessionFactoryOptions
in interface SessionFactoryServiceInitiatorContext
public ServiceRegistryImplementor getServiceRegistry()
getServiceRegistry
in interface SessionFactoryServiceInitiatorContext
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 © 2018 JBoss by Red Hat. All rights reserved.