Class JdbcServicesInitiator
java.lang.Object
org.hibernate.engine.jdbc.internal.JdbcServicesInitiator
- All Implemented Interfaces:
StandardServiceInitiator<JdbcServices>
,ServiceInitiator<JdbcServices>
Standard initiator for the standard
JdbcServices
service
TODO : should this maybe be a SessionFactory service?-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the service role initiated by this initiator.initiateService
(Map<String, Object> configurationValues, ServiceRegistryImplementor registry) Initiates the managed service.
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
JdbcServicesInitiator
public JdbcServicesInitiator()
-
-
Method Details
-
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.
-