Top Description Methods
org.hibernate.service.spi

public Interface SessionFactoryServiceInitiator<R extends org.hibernate.service.Service>

extends ServiceInitiator<R extends Service>
Known Direct Implementers
org.hibernate.stat.internal.StatisticsInitiator, org.hibernate.engine.query.spi.NativeQueryInterpreterInitiator, org.hibernate.engine.spi.CacheInitiator
Imports
org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.Service

Contract for an initiator of services that target the specialized service registry SessionFactoryServiceRegistry
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default R

Returns:

The initiated service.
initiateService
(SessionFactoryServiceInitiatorContext
Access to initialization contextual info
context
)

Initiates the managed service.

public R

Returns:

The initiated service.
initiateService
(SessionFactoryImplementor
The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.
sessionFactory
,
SessionFactoryOptions
Options specified for building the SessionFactory
sessionFactoryOptions
,
ServiceRegistryImplementor
The service registry. Can be used to locate services needed to fulfill initiation.
registry
)

Initiates the managed service.
Inherited from org.hibernate.service.spi.ServiceInitiator:
getServiceInitiated

Method Detail

initiateServiceback to summary
public default R initiateService(SessionFactoryServiceInitiatorContext context)

Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Parameters
context:SessionFactoryServiceInitiatorContext

Access to initialization contextual info

Returns:R

The initiated service.

initiateServiceback to summary
public R initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)

Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Parameters
sessionFactory:SessionFactoryImplementor

The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.

sessionFactoryOptions:SessionFactoryOptions

Options specified for building the SessionFactory

registry:ServiceRegistryImplementor

The service registry. Can be used to locate services needed to fulfill initiation.

Returns:R

The initiated service.

Annotations
@Deprecated