|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.jndi.registry.AbsRegistryWrapperContext
org.objectweb.carol.jndi.registry.CmiRegistryWrapperContext
public class CmiRegistryWrapperContext
Wrapper on a Registry object and implementing Context
Field Summary |
---|
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 | |
---|---|
CmiRegistryWrapperContext(java.util.Hashtable env)
Create a local context for the registry |
Method Summary | |
---|---|
void |
bind(javax.naming.Name name,
java.lang.Object obj)
Binds a name to an object. |
java.lang.Object |
lookup(javax.naming.Name name)
Retrieves the named object. |
void |
rebind(javax.naming.Name name,
java.lang.Object obj)
Binds a name to an object, overwriting any existing binding. |
void |
unbind(javax.naming.Name name)
Unbinds the named object. |
Methods inherited from class org.objectweb.carol.jndi.registry.AbsRegistryWrapperContext |
---|
addToEnvironment, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, removeFromEnvironment, rename, rename, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.naming.Context |
---|
addToEnvironment, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, removeFromEnvironment, rename, rename, unbind |
Constructor Detail |
---|
public CmiRegistryWrapperContext(java.util.Hashtable env)
env
- hashtable usedMethod Detail |
---|
public java.lang.Object lookup(javax.naming.Name name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
lookup
in class AbsRegistryWrapperContext
name
- the name of the object to look up
javax.naming.NamingException
- if a naming exception is encounteredpublic void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
bind
in class AbsRegistryWrapperContext
name
- the name to bind; may not be emptyobj
- the object to bind; possibly null
javax.naming.NamingException
- if a naming exception is encounteredpublic void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
rebind
in class AbsRegistryWrapperContext
name
- the name to bind; may not be emptyobj
- the object to bind; possibly null
javax.naming.NamingException
- if a naming exception is encounteredpublic void unbind(javax.naming.Name name) throws javax.naming.NamingException
name
from the target context--that named by all but the
terminal atomic part of name
.
unbind
in interface javax.naming.Context
unbind
in class AbsRegistryWrapperContext
name
- the name to unbind; may not be empty
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 |