|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.naming.java.javaURLContextFactory
Context factory for the "java:" namespace.
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)
.
Field Summary | |
protected static javax.naming.Context |
initialContext
Initial context. |
static java.lang.String |
MAIN
|
Constructor Summary | |
javaURLContextFactory()
|
Method Summary | |
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)
Create a new Context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MAIN
protected static javax.naming.Context initialContext
Constructor Detail |
public javaURLContextFactory()
Method Detail |
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
(ContextBindings.isThreadBound()) ||
(ContextBindings.isClassLoaderBound())).
Returns a SelectorContext
instance.
getObjectInstance
in interface javax.naming.spi.ObjectFactory
obj
- Object instance (ignored)name
- Name (ignored)nameCtx
- Context (ignored)environment
- Environment
javax.naming.NamingException
- if a naming exception is encounteredpublic javax.naming.Context getInitialContext(java.util.Hashtable environment) throws javax.naming.NamingException
(ContextBindings.isThreadBound()) ||
(ContextBindings.isClassLoaderBound()))
, a new
SelectorContext
is created. If the thread is not bound
and no shared writable context has been created, a new shared,
writable NamingContext
is created and returned.
getInitialContext
in interface javax.naming.spi.InitialContextFactory
environment
- environment
javax.naming.NamingException
- if a naming exception is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |