public final class PooledConnectionFactoryPropertySource extends AbstractPropertySource<PooledConnectionFactory>
PooledConnectionFactory and returns an initialized object of that type.PropertySource.PropertyDomain| Modifier and Type | Field and Description |
|---|---|
private ConnectionPoolType |
poolType
Connection pool type.
|
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain| Constructor and Description |
|---|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf)
Creates a new pooled connection factory property source using the default properties file.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
java.util.Properties props)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
PropertySource.PropertyDomain domain,
java.util.Properties props)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
java.io.Reader... readers)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
java.lang.String... paths)
Creates a new pooled connection factory property source.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionPoolType |
getPoolType()
Returns the pool type.
|
static java.util.Set<java.lang.String> |
getProperties()
Returns the property names for this property source.
|
void |
initialize()
Initializes the object for this property source.
|
void |
setPoolType(ConnectionPoolType pt) |
initializeObject, loadProperties, loadPropertiesprivate ConnectionPoolType poolType
public PooledConnectionFactoryPropertySource(PooledConnectionFactory cf)
cf - connection factory to invoke properties onpublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, java.lang.String... paths)
cf - connection factory to invoke properties onpaths - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, java.io.Reader... readers)
cf - connection factory to invoke properties onreaders - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, java.util.Properties props)
cf - connection factory to invoke properties onprops - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, PropertySource.PropertyDomain domain, java.util.Properties props)
cf - connection factory to invoke properties ondomain - that properties are inprops - to read properties frompublic ConnectionPoolType getPoolType()
public void setPoolType(ConnectionPoolType pt)
pt - pool typepublic void initialize()
PropertySourcepublic static java.util.Set<java.lang.String> getProperties()