Package org.hibernate.engine.spi
Class CacheInitiator
- java.lang.Object
-
- org.hibernate.engine.spi.CacheInitiator
-
- All Implemented Interfaces:
ServiceInitiator<CacheImplementor>
,SessionFactoryServiceInitiator<CacheImplementor>
public class CacheInitiator extends Object implements SessionFactoryServiceInitiator<CacheImplementor>
Initiator for second level cache support
-
-
Field Summary
Fields Modifier and Type Field Description static CacheInitiator
INSTANCE
-
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.CacheImplementor
initiateService(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:SessionFactoryServiceInitiator
Initiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Specified by:
initiateService
in interfaceSessionFactoryServiceInitiator<CacheImplementor>
- Parameters:
context
- Access to initialization contextual info- Returns:
- The initiated service.
-
getServiceInitiated
public Class<CacheImplementor> getServiceInitiated()
Description copied from interface:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in interfaceServiceInitiator<CacheImplementor>
- Returns:
- The service role.
-
-