Package org.hibernate.stat.internal
Class StatisticsInitiator
- java.lang.Object
-
- org.hibernate.stat.internal.StatisticsInitiator
-
- All Implemented Interfaces:
ServiceInitiator<StatisticsImplementor>
,SessionFactoryServiceInitiator<StatisticsImplementor>
public class StatisticsInitiator extends Object implements SessionFactoryServiceInitiator<StatisticsImplementor>
-
-
Field Summary
Fields Modifier and Type Field Description static StatisticsInitiator
INSTANCE
-
Constructor Summary
Constructors Constructor Description StatisticsInitiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<StatisticsImplementor>
getServiceInitiated()
Obtains the service role initiated by this initiator.StatisticsImplementor
initiateService(SessionFactoryServiceInitiatorContext context)
Initiates the managed service.
-
-
-
Field Detail
-
INSTANCE
public static final StatisticsInitiator INSTANCE
-
-
Method Detail
-
getServiceInitiated
public Class<StatisticsImplementor> getServiceInitiated()
Description copied from interface:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in interfaceServiceInitiator<StatisticsImplementor>
- Returns:
- The service role.
-
initiateService
public StatisticsImplementor initiateService(SessionFactoryServiceInitiatorContext context)
Description copied from interface:SessionFactoryServiceInitiator
Initiates the managed service.Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete
- Specified by:
initiateService
in interfaceSessionFactoryServiceInitiator<StatisticsImplementor>
- Parameters:
context
- Access to initialization contextual info- Returns:
- The initiated service.
-
-