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, unbind
void 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.RemoteException
removeNamingListener(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.RemoteException
addNamingListener(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.RemoteException
Copyright © 2016 JBoss by Red Hat. All rights reserved.