Top Description Fields Constructors Methods
org.hibernate.engine.spi

public Class CacheInitiator

extends Object
implements SessionFactoryServiceInitiator<CacheImplementor>
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.SessionFactoryServiceInitiator, org.hibernate.service.spi.ServiceInitiator
Imports
org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.cache.internal.DisabledCaching, .EnabledCaching, .NoCachingRegionFactory, org.hibernate.cache.spi.CacheImplementor, .RegionFactory, org.hibernate.service.spi.ServiceRegistryImplementor, .SessionFactoryServiceInitiator

Initiator for second level cache support
Authors
Steve Ebersole, Strong Liu

Field Summary

Modifier and TypeField and Description
public static final CacheInitiator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<CacheImplementor>
getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator.
public CacheImplementor
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
)

Implements org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Deprecated as a consequence of SessionFactoryImplementor and CacheImplementor being deprecated.
Initiates the managed service.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final CacheInitiator INSTANCE

Constructor Detail

CacheInitiatorback to summary
public CacheInitiator()

Method Detail

getServiceInitiatedback to summary
public Class<CacheImplementor> getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Doc from org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator. Should be unique within a registry

Returns:Class<CacheImplementor>

The service role.

Annotations
@Override
initiateServiceback to summary
public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)

Implements org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Doc from org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Deprecated

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

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:CacheImplementor

The initiated service.

Annotations
@Override