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,
SessionFactoryOptions sessionFactoryOptions,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
StatisticsImplementor |
initiateService(SessionFactoryServiceInitiatorContext context)
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(SessionFactoryServiceInitiatorContext context)
SessionFactoryServiceInitiator
initiateService
in interface SessionFactoryServiceInitiator<StatisticsImplementor>
context
- Access to initialization contextual infopublic StatisticsImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, 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.sessionFactoryOptions
- Options specified for building the SessionFactoryregistry
- The service registry. Can be used to locate services needed to fulfill initiation.Copyright © 2021 JBoss by Red Hat. All rights reserved.