类 CacheInitiator
- java.lang.Object
-
- org.hibernate.engine.spi.CacheInitiator
-
public class CacheInitiator extends Object implements SessionFactoryServiceInitiator<CacheImplementor>
Initiator for second level cache support- 作者:
- Steve Ebersole, Strong Liu
-
-
字段概要
字段 修饰符和类型 字段 说明 static CacheInitiatorINSTANCE
-
构造器概要
构造器 构造器 说明 CacheInitiator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<CacheImplementor>getServiceInitiated()Obtains the service role initiated by this initiator.CacheImplementorinitiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)Initiates the managed service.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.service.spi.SessionFactoryServiceInitiator
initiateService
-
-
-
-
字段详细资料
-
INSTANCE
public static final CacheInitiator INSTANCE
-
-
方法详细资料
-
initiateService
public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
从接口复制的说明:SessionFactoryServiceInitiatorInitiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- 指定者:
initiateService在接口中SessionFactoryServiceInitiator<CacheImplementor>- 参数:
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.- 返回:
- The initiated service.
-
getServiceInitiated
public Class<CacheImplementor> getServiceInitiated()
从接口复制的说明:ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry- 指定者:
getServiceInitiated在接口中ServiceInitiator<CacheImplementor>- 返回:
- The service role.
-
-