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,
Properties props)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
PropertySource.PropertyDomain domain,
Properties props)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
Reader... readers)
Creates a new pooled connection factory property source.
|
PooledConnectionFactoryPropertySource(PooledConnectionFactory cf,
String... paths)
Creates a new pooled connection factory property source.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionPoolType |
getPoolType()
Returns the pool type.
|
static Set<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, String... paths)
cf - connection factory to invoke properties onpaths - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, Reader... readers)
cf - connection factory to invoke properties onreaders - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, Properties props)
cf - connection factory to invoke properties onprops - to read properties frompublic PooledConnectionFactoryPropertySource(PooledConnectionFactory cf, PropertySource.PropertyDomain domain, 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()
PropertySourceCopyright © 2003-2019 Virginia Tech. All Rights Reserved.