Class SharedPoolDataSourceFactory
java.lang.Object
org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory
org.apache.commons.dbcp2.datasources.SharedPoolDataSourceFactory
- All Implemented Interfaces:
ObjectFactory
A JNDI ObjectFactory which creates
SharedPoolDataSources- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InstanceKeyDataSourcegetNewInstance(Reference ref) Creates an instance of the subclass and sets any properties contained in the Reference.protected booleanisCorrectClass(String className) Tests if className is the value returned from getClass().getName().toString().Methods inherited from class org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory
closeAll, deserialize, getObjectInstance, parseBoolean, parseInt, parseLong, registerNewInstance, removeInstance, toString
-
Field Details
-
SHARED_POOL_CLASSNAME
-
-
Constructor Details
-
SharedPoolDataSourceFactory
public SharedPoolDataSourceFactory()
-
-
Method Details
-
getNewInstance
Description copied from class:InstanceKeyDataSourceFactoryCreates an instance of the subclass and sets any properties contained in the Reference.- Specified by:
getNewInstancein classInstanceKeyDataSourceFactory- Parameters:
ref- The properties to be set on the created DataSource- Returns:
- A configured DataSource of the appropriate type.
-
isCorrectClass
Description copied from class:InstanceKeyDataSourceFactoryTests if className is the value returned from getClass().getName().toString().- Specified by:
isCorrectClassin classInstanceKeyDataSourceFactory- Parameters:
className- The class name to test.- Returns:
- true if and only if className is the value returned from getClass().getName().toString()
-