Package org.nuxeo.runtime.jtajca
Class InitialContextAccessor
java.lang.Object
javax.naming.InitialContext
org.nuxeo.runtime.jtajca.InitialContextAccessor
- All Implemented Interfaces:
Context
Utility class used for testing JNDI space provider.
- Since:
- 5.5
- Author:
- Stephane Lacoin (aka matic)
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Context
static Context
Get access to the default initial context implementationstatic boolean
Check for JNDI space availabilitystatic boolean
isWritable
(Context ctx, String prefix) Try writing in JNDI spaceMethods inherited from class javax.naming.InitialContext
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, getDefaultInitCtx, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getURLOrDefaultInitCtx, getURLOrDefaultInitCtx, init, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
-
Field Details
-
ENV_CTX_NAME
- See Also:
-
-
Constructor Details
-
InitialContextAccessor
- Throws:
NamingException
-
-
Method Details
-
_getInitCtx
-
isAvailable
public static boolean isAvailable()Check for JNDI space availability- Returns:
- true if JNDI space exists
-
isWritable
Try writing in JNDI space- Returns:
- true if JNDI space is writable
-
getInitialContext
Get access to the default initial context implementation- Returns:
- the initial context implementation
-