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 |
---|---|
static void |
deregisterGlobalResourceAccess(javax.naming.Context globalContext) |
static void |
deregisterGlobalResourceAccess(javax.naming.Context globalContext,
java.lang.String localName) |
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 |
registerGlobalResourceAccess(javax.naming.Context globalContext,
java.lang.String localName,
java.lang.String globalName) |
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 static void registerGlobalResourceAccess(javax.naming.Context globalContext, java.lang.String localName, java.lang.String globalName)
public static void deregisterGlobalResourceAccess(javax.naming.Context globalContext, java.lang.String localName)
public static void deregisterGlobalResourceAccess(javax.naming.Context globalContext)
public 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-2018 Apache Software Foundation. All Rights Reserved.