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.internal.util.NullnessUtil, org.hibernate.service.Service, org.hibernate.service.spi.Configurable, .ServiceBinding, .ServiceInitiator, .ServiceRegistryImplementor, .SessionFactoryServiceInitiator, .SessionFactoryServiceInitiatorContext, .SessionFactoryServiceRegistry, org.jboss.logging.Logger, org.checkerframework.checker.nullness.qual.Nullable

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
private
SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, 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 static SessionFactoryServiceRegistryImpl
create(ServiceRegistryImplementor parent, List<SessionFactoryServiceInitiator<?>> initiators, List<ProvidedService<?>> providedServices, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public <R extends Service> @Nullable R
public ServiceRegistryImplementor
public SessionFactoryImplementor
public SessionFactoryOptions
protected void
initialize(List<SessionFactoryServiceInitiator<?>> initiators, List<ProvidedService<?>> providedServices)

public <R extends Service> R
Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
createServicecreateServiceBindingcreateServiceBindingdeRegisterChilddestroyfromRegistryOrChildrenfromRegistryOrChildrengetParentServiceRegistryinitializeinjectDependenciesisActivelocateServiceBindinglocateServiceBindingreactivateregisterChildregisterServiceresetParentstartServicestopServicevisitServiceBindings

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
private SessionFactoryServiceRegistryImpl(ServiceRegistryImplementor parent, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)

Deprecated

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

Method Detail

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

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

Annotations
@Override
createback to summary
public static SessionFactoryServiceRegistryImpl create(ServiceRegistryImplementor parent, List<SessionFactoryServiceInitiator<?>> initiators, List<ProvidedService<?>> providedServices, SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)

Deprecated

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

getServiceback to summary
public <R extends Service> @Nullable 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.

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

The service role

Returns:@Nullable 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
initializeback to summary
protected void initialize(List<SessionFactoryServiceInitiator<?>> initiators, List<ProvidedService<?>> providedServices)
initiateServiceback to summary
public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)

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

Annotations
@Override