Object factory for resource links.
| Modifier and Type | Field and Description |
|---|---|
| private static Context | globalContext
Global naming context. |
| private static Map | |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public Object | getObjectInstance(Object
The reference object describing the DataSource obj, Name The name of this object relative to name, Context nameCtx,
or null if no name is specified.The context relative to which the nameCtx, Hashtable<?, ?> name
parameter is specified, or null if name is
relative to the default initial context.The possibly null environment that is used in
creating the object. environment)Implements javax. Create a new DataSource instance. |
| public static void | |
| public static void | setGlobalContext(Context
new global context value newGlobalContext)Set the global context (note: can only be used once). |
| private static void | |
| private static boolean |
| globalContext | back to summary |
|---|---|
| private static Context globalContext Global naming context. | |
| globalResourceRegistrations | back to summary |
|---|---|
| private static Map<ClassLoader, Map<String, String>> globalResourceRegistrations | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| ResourceLinkFactory | back to summary |
|---|---|
| public ResourceLinkFactory() | |
| deregisterGlobalResourceAccess | back to summary |
|---|---|
| public static void deregisterGlobalResourceAccess(Context globalContext, String localName) | |
| deregisterGlobalResourceAccess | back to summary |
|---|---|
| public static void deregisterGlobalResourceAccess(Context globalContext) | |
| getObjectInstance | back to summary |
|---|---|
| public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws NamingException Implements javax. Create a new DataSource instance.
| |
| registerGlobalResourceAccess | back to summary |
|---|---|
| public static void registerGlobalResourceAccess(Context globalContext, String localName, String globalName) | |
| setGlobalContext | back to summary |
|---|---|
| public static void setGlobalContext(Context newGlobalContext) Set the global context (note: can only be used once).
| |
| validateGlobalContext | back to summary |
|---|---|
| private static void validateGlobalContext(Context globalContext) | |
| validateGlobalResourceAccess | back to summary |
|---|---|
| private static boolean validateGlobalResourceAccess(String globalName) | |