public class ConnectionProviderInitiator extends Object implements BasicServiceInitiator<ConnectionProvider>
ConnectionProvider
.Modifier and Type | Field and Description |
---|---|
static String |
C3P0_PROVIDER_CLASS_NAME |
static String |
INJECTION_DATA |
static ConnectionProviderInitiator |
INSTANCE |
static String |
PROXOOL_PROVIDER_CLASS_NAME |
Constructor and Description |
---|
ConnectionProviderInitiator() |
Modifier and Type | Method and Description |
---|---|
static Properties |
getConnectionProperties(Map<?,?> properties)
Build the connection properties capable of being passed to the
DriverManager.getConnection(java.lang.String, java.util.Properties)
forms taking Properties argument. |
Class<ConnectionProvider> |
getServiceInitiated()
Obtains the service role initiated by this initiator.
|
ConnectionProvider |
initiateService(Map configurationValues,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
public static final ConnectionProviderInitiator INSTANCE
public static final String C3P0_PROVIDER_CLASS_NAME
public static final String PROXOOL_PROVIDER_CLASS_NAME
public static final String INJECTION_DATA
public Class<ConnectionProvider> getServiceInitiated()
ServiceInitiator
getServiceInitiated
in interface ServiceInitiator<ConnectionProvider>
public ConnectionProvider initiateService(Map configurationValues, ServiceRegistryImplementor registry)
BasicServiceInitiator
initiateService
in interface BasicServiceInitiator<ConnectionProvider>
configurationValues
- The configuration values in effectregistry
- The service registry. Can be used to locate services needed to fulfill initiation.public static Properties getConnectionProperties(Map<?,?> properties)
DriverManager.getConnection(java.lang.String, java.util.Properties)
forms taking Properties
argument. We seek out all keys in the passed map which start with
hibernate.connection.
, using them to create a new Properties
instance. The keys in this
new Properties
have the hibernate.connection.
prefix trimmed.properties
- The map from which to build the connection specific properties.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.