public class javaURLContextFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory, javax.naming.spi.InitialContextFactory
Important note : This factory MUST be associated with the "java" URL prefix, which can be done by either :
NamingManager.getURLContext(java.lang.String, java.util.Hashtable)
.Modifier and Type | Field and Description |
---|---|
protected static javax.naming.Context |
initialContext
Initial context.
|
static java.lang.String |
MAIN |
Constructor and Description |
---|
javaURLContextFactory() |
Modifier and Type | Method and Description |
---|---|
javax.naming.Context |
getInitialContext(java.util.Hashtable<?,?> environment)
Get a new (writable) initial context.
|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Crete a new Context's instance.
|
public static final java.lang.String MAIN
protected static volatile javax.naming.Context initialContext
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
javax.naming.NamingException
public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> environment) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
javax.naming.NamingException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.