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