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