public class GenericNamingResourcesFactory
extends java.lang.Object
implements javax.naming.spi.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 java.lang.String |
capitalize(java.lang.String name) |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment) |
static boolean |
setProperty(java.lang.Object o,
java.lang.String name,
java.lang.String value,
boolean invokeSetProperty) |
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment) throws java.lang.Exception
getObjectInstance
in interface javax.naming.spi.ObjectFactory
java.lang.Exception
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value, boolean invokeSetProperty)
public static java.lang.String capitalize(java.lang.String name)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.