Top Fields Constructors Methods
org.hibernate.service.internal

public Class SessionFactoryServiceRegistryImpl

extends AbstractServiceRegistryImpl
implements SessionFactoryServiceRegistry, SessionFactoryServiceInitiatorContext
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.SessionFactoryServiceInitiatorContext, org.hibernate.service.spi.SessionFactoryServiceRegistry, org.hibernate.service.spi.ServiceRegistryImplementor, org.hibernate.service.ServiceRegistry, java.lang.AutoCloseable
Imports
java.util.List, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.engine.config.spi.ConfigurationService, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.event.service.spi.EventListenerRegistry, org.hibernate.service.Service, org.hibernate.service.spi.Configurable, .ServiceBinding, .ServiceInitiator, .ServiceRegistryImplementor, .SessionFactoryServiceInitiator, .SessionFactoryServiceInitiatorContext, .SessionFactoryServiceRegistry, org.jboss.logging.Logger

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private final SessionFactoryOptions
Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
ALLOW_CRAWLING

Constructor Summary

AccessConstructor and Description
public
SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, List<SessionFactoryServiceInitiator<R extends Service>> initiators, List<ProvidedService<R>> providedServices, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public <R extends Service> void
public <R extends Service> R
public ServiceRegistryImplementor
public SessionFactoryImplementor
public SessionFactoryOptions
public <R extends Service> R
Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
createServicecreateServiceBindingcreateServiceBindingdeRegisterChilddestroygetParentServiceRegistryinjectDependenciesisActivelocateServiceBindinglocateServiceBindingreactivateregisterChildregisterServiceresetParentstartServicestopServicevisitServiceBindings

Field Detail

logback to summary
private static final Logger log

Hides org.hibernate.service.internal.AbstractServiceRegistryImpl.log.

sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

sessionFactoryOptionsback to summary
private final SessionFactoryOptions sessionFactoryOptions

Constructor Detail

SessionFactoryServiceRegistryImplback to summary
public SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, List<SessionFactoryServiceInitiator<R extends Service>> initiators, List<ProvidedService<R>> providedServices, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@SuppressWarnings:unchecked, rawtypes

Method Detail

configureServiceback to summary
public <R extends Service> void configureService(ServiceBinding<R> serviceBinding)

Implements org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner.configureService.

Annotations
@Override
getServiceback to summary
public <R extends Service> R getService(Class<R> serviceRole)

Overrides org.hibernate.service.internal.AbstractServiceRegistryImpl.getService.

Implements org.hibernate.service.ServiceRegistry.getService.

Doc from org.hibernate.service.ServiceRegistry.getService.

Retrieve a service by role. If service is not found, but a org.hibernate.service.spi.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...

Parameters
<R>
The service role type
serviceRole:Class<R>

The service role

Returns:R

The requested service or null if the service was not found.

Annotations
@Override
getServiceRegistryback to summary
public ServiceRegistryImplementor getServiceRegistry()

Implements org.hibernate.service.spi.SessionFactoryServiceInitiatorContext.getServiceRegistry.

Annotations
@Override
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Implements org.hibernate.service.spi.SessionFactoryServiceInitiatorContext.getSessionFactory.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Override
getSessionFactoryOptionsback to summary
public SessionFactoryOptions getSessionFactoryOptions()

Implements org.hibernate.service.spi.SessionFactoryServiceInitiatorContext.getSessionFactoryOptions.

Annotations
@Override
initiateServiceback to summary
public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)

Implements org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner.initiateService.

Annotations
@Override