public class ResourceLinkFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
Object factory for resource links.
Constructor and Description |
---|
ResourceLinkFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Create a new DataSource instance.
|
static void |
setGlobalContext(javax.naming.Context newGlobalContext)
Set the global context (note: can only be used once).
|
public static void setGlobalContext(javax.naming.Context newGlobalContext)
newGlobalContext
- new global context valuepublic java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment) throws javax.naming.NamingException
getObjectInstance
in interface javax.naming.spi.ObjectFactory
obj
- The reference object describing the DataSourcejavax.naming.NamingException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.