Class GenericNamingResourcesFactory
java.lang.Object
org.apache.tomcat.jdbc.naming.GenericNamingResourcesFactory
- All Implemented Interfaces:
ObjectFactory
Simple way of configuring generic resources by using reflection.
Example usage:
<Resource factory="org.apache.tomcat.jdbc.naming.GenericNamingResourcesFactory"
name="jdbc/test"
type="org.apache.derby.jdbc.ClientXADataSource"
databaseName="sample"
createDatabase="create"
serverName="localhost"
port="1527"/>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalize
(String name) getObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)
-
Constructor Details
-
GenericNamingResourcesFactory
public GenericNamingResourcesFactory()
-
-
Method Details
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception- Specified by:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
-
capitalize
-