public class ResourceLinkFactory extends Object implements ObjectFactory
Object factory for resource links.
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
Constructor and Description |
---|
ResourceLinkFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
deregisterGlobalResourceAccess(Context globalContext) |
static void |
deregisterGlobalResourceAccess(Context globalContext,
String localName) |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
Create a new DataSource instance.
|
static void |
registerGlobalResourceAccess(Context globalContext,
String localName,
String globalName) |
static void |
setGlobalContext(Context newGlobalContext)
Set the global context (note: can only be used once).
|
protected static final StringManager sm
public static void setGlobalContext(Context newGlobalContext)
newGlobalContext
- new global context valuepublic static void registerGlobalResourceAccess(Context globalContext, String localName, String globalName)
public static void deregisterGlobalResourceAccess(Context globalContext, String localName)
public static void deregisterGlobalResourceAccess(Context globalContext)
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws NamingException
getObjectInstance
in interface ObjectFactory
obj
- The reference object describing the DataSourceNamingException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.