public class NamingServerWrapper extends Object implements Naming, NamingEvents
| Modifier and Type | Method and Description |
|---|---|
void |
addNamingListener(EventContext context,
Name target,
int scope,
NamingListener l)
Adds a listener for receiving naming events fired
when the object(s) identified by a target and scope changes.
|
void |
bind(Name name,
Object obj,
String className) |
Context |
createSubcontext(Name name) |
Collection |
list(Name name) |
Collection |
listBindings(Name name) |
Object |
lookup(Name name) |
void |
rebind(Name name,
Object obj,
String className) |
void |
removeNamingListener(NamingListener l)
Removes a listener from receiving naming events
|
boolean |
targetMustExist()
Determines whether a listener can register interest in a target
that does not exist.
|
void |
unbind(Name name) |
public void bind(Name name, Object obj, String className) throws NamingException, RemoteException
bind in interface NamingNamingExceptionRemoteExceptionpublic Context createSubcontext(Name name) throws NamingException, RemoteException
createSubcontext in interface NamingNamingExceptionRemoteExceptionpublic Collection list(Name name) throws NamingException, RemoteException
list in interface NamingNamingExceptionRemoteExceptionpublic Collection listBindings(Name name) throws NamingException, RemoteException
listBindings in interface NamingNamingExceptionRemoteExceptionpublic Object lookup(Name name) throws NamingException, RemoteException
lookup in interface NamingNamingExceptionRemoteExceptionpublic void rebind(Name name, Object obj, String className) throws NamingException, RemoteException
rebind in interface NamingNamingExceptionRemoteExceptionpublic void unbind(Name name) throws NamingException, RemoteException
unbind in interface NamingNamingExceptionRemoteExceptionpublic void addNamingListener(EventContext context, Name target, int scope, NamingListener l) throws NamingException, RemoteException
NamingEventsaddNamingListener in interface NamingEventscontext - - the non-null EventContext the listener is registering withtarget - A non-null name to be resolved relative to this context.scope - One of OBJECT_SCOPE, ONELEVEL_SCOPE, or
SUBTREE_SCOPE.l - The non-null listener.NamingException - If a problem was encountered while
adding the listener.RemoteExceptionNamingEvents.removeNamingListener(javax.naming.event.NamingListener)public void removeNamingListener(NamingListener l) throws NamingException, RemoteException
NamingEventsremoveNamingListener in interface NamingEventsl - non-null listener.NamingException - If a problem was encountered while
removing the listener.RemoteExceptionNamingEvents.addNamingListener(javax.naming.event.EventContext, javax.naming.Name, int, javax.naming.event.NamingListener)public boolean targetMustExist()
throws NamingException,
RemoteException
NamingEventstargetMustExist in interface NamingEventsNamingException - If the context's behavior in this regard cannot
be determined.RemoteExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.