public class CacheInitiator extends Object implements SessionFactoryServiceInitiator<CacheImplementor>
| 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,
Configuration configuration,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
CacheImplementor |
initiateService(SessionFactoryImplementor sessionFactory,
MetadataImplementor metadata,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
public static final CacheInitiator INSTANCE
public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiatorinitiateService 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.configuration - The configuration.registry - The service registry. Can be used to locate services needed to fulfill initiation.public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiatorinitiateService 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.metadata - The configuration.registry - The service registry. Can be used to locate services needed to fulfill initiation.public Class<CacheImplementor> getServiceInitiated()
ServiceInitiatorgetServiceInitiated in interface ServiceInitiator<CacheImplementor>Copyright © 2018 JBoss by Red Hat. All rights reserved.