public class CacheInitiator extends Object implements SessionFactoryServiceInitiator<CacheImplementor>
Initiator for second level cache support
| Modifier and Type | Field and Description |
|---|---|
static CacheInitiator |
INSTANCE |
| Constructor and Description |
|---|
CacheInitiator() |
| Modifier and Type | Method and Description |
|---|---|
Class<CacheImplementor> |
getServiceInitiated()
Obtains the service role initiated by this initiator.
|
CacheImplementor |
initiateService(SessionFactoryImplementor sessionFactory,
SessionFactoryOptions sessionFactoryOptions,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitiateServicepublic static final CacheInitiator INSTANCE
public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiatorInitiates the managed service. <p/> Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete
initiateService in interface 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.public Class<CacheImplementor> getServiceInitiated()
ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry
getServiceInitiated in interface ServiceInitiator<CacheImplementor>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.