org.openmdx.kernel.naming.spi
Class ClassLoaderContext
java.lang.Object
org.openmdx.kernel.naming.spi.AbstractContext
org.openmdx.kernel.naming.spi.NameBasedContext
org.openmdx.kernel.naming.spi.ClassLoaderContext
- All Implemented Interfaces:
- Context
public class ClassLoaderContext
- extends NameBasedContext
Java URL Context
| 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 |
| Methods inherited from class org.openmdx.kernel.naming.spi.NameBasedContext |
bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, rename, rename, resolve, unbind, unbind |
ClassLoaderContext
public ClassLoaderContext(Hashtable environment,
String urlPrefix)
- Constructor
- Parameters:
environment - urlPrefix -
createSubcontext
public Context createSubcontext(String namespace,
String contextName,
ClassLoader classLoader)
throws NamingException
- Creates a new subcontext for the specified class loader
- Parameters:
namespace - contextName - classLoader -
- Throws:
NamingException
resolveLink
protected Object resolveLink(String nameComponent)
throws NamingException
- Description copied from class:
NameBasedContext
- Resolve a binding
- Specified by:
resolveLink in class NameBasedContext
- Returns:
- the object bound to the given name or null if not found
- Throws:
NamingException
listBindings
protected NamingEnumeration listBindings()
throws NamingException
- Description copied from class:
NameBasedContext
- List the bindings
- Specified by:
listBindings in class NameBasedContext
- Returns:
- this context's bindings
- Throws:
NamingException
getNameInNamespace
public String getNameInNamespace()
throws NamingException
- Throws:
NamingException
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.