public abstract class PoolDataSourceCreator extends java.lang.Object implements DataSourceCreator
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,ObjectRecipe> |
recipes |
Constructor and Description |
---|
PoolDataSourceCreator() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
build(java.lang.Class<T> clazz,
java.lang.Object instance,
java.util.Properties properties) |
protected <T> T |
build(java.lang.Class<T> clazz,
java.util.Properties properties) |
protected void |
cleanProperty(java.lang.Object ds,
java.lang.String name) |
ObjectRecipe |
clearRecipe(java.lang.Object object) |
void |
destroy(java.lang.Object object) |
protected abstract void |
doDestroy(javax.sql.CommonDataSource dataSource) |
javax.sql.DataSource |
managed(java.lang.String name,
javax.sql.CommonDataSource ds) |
javax.sql.DataSource |
poolManaged(java.lang.String name,
javax.sql.DataSource ds,
java.util.Properties properties) |
javax.sql.DataSource |
poolManaged(java.lang.String name,
java.lang.String driver,
java.util.Properties properties) |
javax.sql.DataSource |
poolManagedWithRecovery(java.lang.String name,
XAResourceWrapper xaResourceWrapper,
java.lang.String driver,
java.util.Properties properties) |
protected boolean |
trackRecipeFor(java.lang.Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pool, pool
protected void cleanProperty(java.lang.Object ds, java.lang.String name)
public javax.sql.DataSource managed(java.lang.String name, javax.sql.CommonDataSource ds)
managed
in interface DataSourceCreator
public javax.sql.DataSource poolManagedWithRecovery(java.lang.String name, XAResourceWrapper xaResourceWrapper, java.lang.String driver, java.util.Properties properties)
poolManagedWithRecovery
in interface DataSourceCreator
public javax.sql.DataSource poolManaged(java.lang.String name, javax.sql.DataSource ds, java.util.Properties properties)
poolManaged
in interface DataSourceCreator
public javax.sql.DataSource poolManaged(java.lang.String name, java.lang.String driver, java.util.Properties properties)
poolManaged
in interface DataSourceCreator
public void destroy(java.lang.Object object) throws java.lang.Throwable
destroy
in interface DataSourceCreator
java.lang.Throwable
protected abstract void doDestroy(javax.sql.CommonDataSource dataSource) throws java.lang.Throwable
java.lang.Throwable
protected <T> T build(java.lang.Class<T> clazz, java.util.Properties properties)
protected boolean trackRecipeFor(java.lang.Object value)
protected <T> T build(java.lang.Class<T> clazz, java.lang.Object instance, java.util.Properties properties)
public ObjectRecipe clearRecipe(java.lang.Object object)
clearRecipe
in interface DataSourceCreator