Top Fields Constructors Methods
org.hibernate.stat.internal

public Class StatisticsInitiator

extends Object
implements SessionFactoryServiceInitiator<StatisticsImplementor>
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.SessionFactoryServiceInitiator, org.hibernate.service.spi.ServiceInitiator
Imports
org.hibernate.HibernateException, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.engine.config.spi.ConfigurationService, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.CoreMessageLogger, org.hibernate.service.spi.ServiceRegistryImplementor, .SessionFactoryServiceInitiator, .SessionFactoryServiceInitiatorContext, org.hibernate.stat.spi.StatisticsFactory, .StatisticsImplementor, org.jboss.logging.Logger

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final StatisticsInitiator
private static final CoreMessageLogger
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<StatisticsImplementor>
getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator.
public StatisticsImplementor
initiateService(SessionFactoryServiceInitiatorContext
Access to initialization contextual info
context
)

Overrides default org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Initiates the managed service.
public StatisticsImplementor
initiateService(SessionFactoryImplementor
The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.
sessionFactory
,
SessionFactoryOptions
Options specified for building the SessionFactory
sessionFactoryOptions
,
ServiceRegistryImplementor
The service registry. Can be used to locate services needed to fulfill initiation.
registry
)

Implements org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Initiates the managed service.
private StatisticsImplementor
initiateServiceInternal(SessionFactoryImplementor sessionFactory, Object configValue, ServiceRegistryImplementor registry)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final StatisticsInitiator INSTANCE
LOGback to summary
private static final CoreMessageLogger LOG
STATS_BUILDERback to summary
public static final String STATS_BUILDER

Names the StatisticsFactory to use. Recognizes both a class name as well as an instance of StatisticsFactory.

Constructor Detail

StatisticsInitiatorback to summary
public StatisticsInitiator()

Method Detail

getServiceInitiatedback to summary
public Class<StatisticsImplementor> getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Doc from org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator. Should be unique within a registry

Returns:Class<StatisticsImplementor>

The service role.

Annotations
@Override
initiateServiceback to summary
public StatisticsImplementor initiateService(SessionFactoryServiceInitiatorContext context)

Overrides default org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Doc from org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Parameters
context:SessionFactoryServiceInitiatorContext

Access to initialization contextual info

Returns:StatisticsImplementor

The initiated service.

Annotations
@Override
initiateServiceback to summary
public StatisticsImplementor initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)

Implements org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Doc from org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Parameters
sessionFactory:SessionFactoryImplementor

The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.

sessionFactoryOptions:SessionFactoryOptions

Options specified for building the SessionFactory

registry:ServiceRegistryImplementor

The service registry. Can be used to locate services needed to fulfill initiation.

Returns:StatisticsImplementor

The initiated service.

Annotations
@Override
initiateServiceInternalback to summary
private StatisticsImplementor initiateServiceInternal(SessionFactoryImplementor sessionFactory, Object configValue, ServiceRegistryImplementor registry)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.