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.cache.internal.DisabledCaching, .EnabledCaching, .NoCachingRegionFactory, org.hibernate.cache.spi.CacheImplementor, .RegionFactory, org.hibernate.service.spi.SessionFactoryServiceInitiator, .SessionFactoryServiceInitiatorContext

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(SessionFactoryServiceInitiatorContext
Access to initialization contextual info
context
)

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

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(SessionFactoryServiceInitiatorContext context)

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

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

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

The initiated service.

Annotations
@Override