|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jnp.server.NamingServer
public class NamingServer
The in memory JNDI naming server implementation class.
Field Summary | |
---|---|
protected NamingServer |
parent
|
protected NamingParser |
parser
|
protected Name |
prefix
|
protected Map<String,Binding> |
table
|
Constructor Summary | |
---|---|
NamingServer()
|
|
NamingServer(Name prefix,
NamingServer parent)
|
|
NamingServer(Name prefix,
NamingServer parent,
EventMgr eventMgr)
|
|
NamingServer(Name prefix,
NamingServer parent,
EventMgr eventMgr,
SecurityManager secMgr)
|
Method Summary | |
---|---|
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)
|
protected NamingServer |
createNamingServer(Name prefix,
NamingServer parent)
Create sub naming. |
Context |
createSubcontext(Name name)
|
protected Map<String,Binding> |
createTable()
|
protected void |
fireEvent(Name fullName,
Binding oldb,
Binding newb,
int type,
String changeInfo)
|
Naming |
getRoot()
|
Collection<NameClassPair> |
list(Name name)
|
Collection<Binding> |
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()
We don't need targets to exist? |
void |
unbind(Name name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Binding> table
protected Name prefix
protected NamingParser parser
protected NamingServer parent
Constructor Detail |
---|
public NamingServer() throws NamingException
NamingException
public NamingServer(Name prefix, NamingServer parent) throws NamingException
NamingException
public NamingServer(Name prefix, NamingServer parent, EventMgr eventMgr) throws NamingException
NamingException
public NamingServer(Name prefix, NamingServer parent, EventMgr eventMgr, SecurityManager secMgr) throws NamingException
NamingException
Method Detail |
---|
public void addNamingListener(EventContext context, Name target, int scope, NamingListener l) throws NamingException
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.NamingEvents.removeNamingListener(javax.naming.event.NamingListener)
public void removeNamingListener(NamingListener l) throws NamingException
NamingEvents
removeNamingListener
in interface NamingEvents
l
- non-null listener.
NamingException
- If a problem was encountered while
removing the listener.NamingEvents.addNamingListener(javax.naming.event.EventContext, javax.naming.Name, int, javax.naming.event.NamingListener)
public boolean targetMustExist() throws NamingException
targetMustExist
in interface NamingEvents
NamingException
public void bind(Name name, Object obj, String className) throws NamingException
bind
in interface Naming
NamingException
public void rebind(Name name, Object obj, String className) throws NamingException
rebind
in interface Naming
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface Naming
NamingException
public Object lookup(Name name) throws NamingException
lookup
in interface Naming
NamingException
public Collection<NameClassPair> list(Name name) throws NamingException
list
in interface Naming
NamingException
public Collection<Binding> listBindings(Name name) throws NamingException
listBindings
in interface Naming
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Naming
NamingException
public Naming getRoot()
protected Map<String,Binding> createTable()
protected NamingServer createNamingServer(Name prefix, NamingServer parent) throws NamingException
prefix
- the prefixparent
- the parent naming server
NamingException
- for any errorprotected void fireEvent(Name fullName, Binding oldb, Binding newb, int type, String changeInfo) throws NamingException
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |