Package org.hibernate.engine.spi
Class CacheInitiator
- java.lang.Object
- org.hibernate.engine.spi.CacheInitiator
- All Implemented Interfaces:
ServiceInitiator<CacheImplementor>,SessionFactoryServiceInitiator<CacheImplementor>
public classCacheInitiatorextendsObjectimplementsSessionFactoryServiceInitiator<CacheImplementor>
Initiator for second level cache support
Field Summary
Fields Modifier and Type Field Description staticCacheInitiatorINSTANCE
Constructor Summary
Constructors Constructor Description CacheInitiator()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<CacheImplementor>getServiceInitiated()Obtains the service role initiated by this initiator.CacheImplementorinitiateService(SessionFactoryServiceInitiatorContext context)Initiates the managed service.
Field Detail
INSTANCE
public static final CacheInitiator INSTANCE
Method Detail
initiateService
public CacheImplementor initiateService(SessionFactoryServiceInitiatorContext context)
Description copied from interface:SessionFactoryServiceInitiatorInitiates the managed service.Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete
- Specified by:
initiateServicein interfaceSessionFactoryServiceInitiator<CacheImplementor>- Parameters:
context- Access to initialization contextual info- Returns:
- The initiated service.
getServiceInitiated
public Class<CacheImplementor> getServiceInitiated()
Description copied from interface:ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiatedin interfaceServiceInitiator<CacheImplementor>- Returns:
- The service role.