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 java.lang.Object implements SessionFactoryServiceInitiator<CacheImplementor>
Initiator for second level cache support
-
-
Field Summary
Fields Modifier and Type Field Description static CacheInitiatorINSTANCE
-
Constructor Summary
Constructors Constructor Description CacheInitiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<CacheImplementor>getServiceInitiated()Obtains the service role initiated by this initiator.CacheImplementorinitiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)Initiates the managed service.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.service.spi.SessionFactoryServiceInitiator
initiateService
-
-
-
-
Field Detail
-
INSTANCE
public static final CacheInitiator INSTANCE
-
-
Method Detail
-
initiateService
public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
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:
sessionFactory- The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.sessionFactoryOptions- Options specified for building the SessionFactoryregistry- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
getServiceInitiated
public java.lang.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.
-
-