public class GenericNamingResourcesFactory extends Object implements ObjectFactory
<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 and Description |
---|
GenericNamingResourcesFactory() |
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String name) |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment) |
static boolean |
setProperty(Object o,
String name,
String value,
boolean invokeSetProperty) |
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
public static boolean setProperty(Object o, String name, String value, boolean invokeSetProperty)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.