public class StatisticsInitiator extends Object implements SessionFactoryServiceInitiator<StatisticsImplementor>
Modifier and Type | Field and Description |
---|---|
static StatisticsInitiator |
INSTANCE |
static String |
STATS_BUILDER
Names the
StatisticsFactory to use. |
Constructor and Description |
---|
StatisticsInitiator() |
Modifier and Type | Method and Description |
---|---|
Class<StatisticsImplementor> |
getServiceInitiated()
Obtains the service role initiated by this initiator.
|
StatisticsImplementor |
initiateService(SessionFactoryImplementor sessionFactory,
Configuration configuration,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
StatisticsImplementor |
initiateService(SessionFactoryImplementor sessionFactory,
MetadataImplementor metadata,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
public static final StatisticsInitiator INSTANCE
public static final String STATS_BUILDER
StatisticsFactory
to use. Recognizes both a class name as well as an instance of
StatisticsFactory
.public Class<StatisticsImplementor> getServiceInitiated()
ServiceInitiator
getServiceInitiated
in interface ServiceInitiator<StatisticsImplementor>
public StatisticsImplementor initiateService(SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiator
initiateService
in interface SessionFactoryServiceInitiator<StatisticsImplementor>
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 StatisticsImplementor initiateService(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiator
initiateService
in interface SessionFactoryServiceInitiator<StatisticsImplementor>
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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.