public interface NamingEvents extends Naming
EventContext| 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 |
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.
|
bind, createSubcontext, list, listBindings, lookup, rebind, unbindvoid addNamingListener(EventContext context, Name target, int scope, NamingListener l) throws NamingException, RemoteException
context - - 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.RemoteExceptionremoveNamingListener(javax.naming.event.NamingListener)void removeNamingListener(NamingListener l) throws NamingException, RemoteException
l - non-null listener.NamingException - If a problem was encountered while
removing the listener.RemoteExceptionaddNamingListener(javax.naming.event.EventContext, javax.naming.Name, int, javax.naming.event.NamingListener)boolean targetMustExist()
throws NamingException,
RemoteException
NamingException - If the context's behavior in this regard cannot
be determined.RemoteExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.