|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.InitialContext
com.sun.enterprise.naming.impl.WrappedSerialContext
public class WrappedSerialContext
This is a Wrapper for SerialContext.
This is used by SerialInitContextFactory when NamingManager is set
up with an InitialContextFactoryBuilder. The reason for having this class
is described below:
When there is no builder setup, InitialContext uses a discovery
mechanism to handle URL strings as described in
NamingManager.getURLContext(String, java.util.Hashtable). But,
when a builder is set up, it by-passes this logic and delegates to whatever
Context is returned by
builder.createInitialContextFactory(env).getInitialContext(env).
In our case, this results in SerialContext, which does not know how to handle
all kinds of URL strings. So, we want to returns a WrapperSerialContext
that delegates to appropriate URLContext whenever possible.
| Field Summary |
|---|
| Fields inherited from class javax.naming.InitialContext |
|---|
defaultInitCtx, gotDefault, myProps |
| Fields inherited from interface javax.naming.Context |
|---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
| Method Summary | |
|---|---|
protected javax.naming.Context |
getDefaultInitCtx()
|
protected javax.naming.Context |
getURLOrDefaultInitCtx(javax.naming.Name name)
|
protected javax.naming.Context |
getURLOrDefaultInitCtx(java.lang.String name)
|
protected void |
init(java.util.Hashtable environment)
|
| Methods inherited from class javax.naming.InitialContext |
|---|
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void init(java.util.Hashtable environment)
throws javax.naming.NamingException
init in class javax.naming.InitialContextjavax.naming.NamingException
protected javax.naming.Context getDefaultInitCtx()
throws javax.naming.NamingException
getDefaultInitCtx in class javax.naming.InitialContextjavax.naming.NamingException
protected javax.naming.Context getURLOrDefaultInitCtx(java.lang.String name)
throws javax.naming.NamingException
getURLOrDefaultInitCtx in class javax.naming.InitialContextjavax.naming.NamingException
protected javax.naming.Context getURLOrDefaultInitCtx(javax.naming.Name name)
throws javax.naming.NamingException
getURLOrDefaultInitCtx in class javax.naming.InitialContextjavax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||