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, visitServiceBindingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, deRegisterChild, destroy, locateServiceBinding, registerChildgetParentServiceRegistry, requireServicepublic 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.ServiceLifecycleOwnerpublic <R extends Service> void configureService(ServiceBinding<R> serviceBinding)
configureService in interface ServiceBinding.ServiceLifecycleOwnerpublic BootstrapContext getBootstrapContext()
getBootstrapContext in interface SessionFactoryServiceInitiatorContextpublic SessionFactoryImplementor getSessionFactory()
getSessionFactory in interface SessionFactoryServiceInitiatorContextpublic SessionFactoryOptions getSessionFactoryOptions()
getSessionFactoryOptions in interface SessionFactoryServiceInitiatorContextpublic ServiceRegistryImplementor getServiceRegistry()
getServiceRegistry in interface SessionFactoryServiceInitiatorContextpublic <R extends Service> R getService(Class<R> serviceRole)
ServiceRegistryServiceInitiator 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 ServiceRegistrygetService in class AbstractServiceRegistryImplR - The service role typeserviceRole - The service roleCopyright © 2019 JBoss by Red Hat. All rights reserved.