Class JdbcServicesInitiator
- java.lang.Object
-
- org.hibernate.engine.jdbc.internal.JdbcServicesInitiator
-
- All Implemented Interfaces:
StandardServiceInitiator<JdbcServices>
,ServiceInitiator<JdbcServices>
public class JdbcServicesInitiator extends Object implements StandardServiceInitiator<JdbcServices>
Standard initiator for the standardJdbcServices
service TODO : should this maybe be a SessionFactory service?
-
-
Field Summary
Fields Modifier and Type Field Description static JdbcServicesInitiator
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description JdbcServicesInitiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<JdbcServices>
getServiceInitiated()
Obtains the service role initiated by this initiator.JdbcServices
initiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
Initiates the managed service.
-
-
-
Field Detail
-
INSTANCE
public static final JdbcServicesInitiator INSTANCE
Singleton access
-
-
Method Detail
-
getServiceInitiated
public Class<JdbcServices> 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<JdbcServices>
- Returns:
- The service role.
-
initiateService
public JdbcServices initiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
Description copied from interface:StandardServiceInitiator
Initiates the managed service.- Specified by:
initiateService
in interfaceStandardServiceInitiator<JdbcServices>
- Parameters:
configurationValues
- The configuration values in effectregistry
- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
-