|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.naming.JVMContext
public class JVMContext
The JVMContext as implementation of the Context interface. The JVM context is an in-memory context implementation
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
| Field Summary | |
|---|---|
static EventType |
CHILD_ADDED_EVENT
CHILD_ADDED_EVENT is fired whenever a child is added |
static EventType |
CHILD_REMOVED_EVENT
CHILD_REMOVED_EVENT is fired whenever a child is removed |
protected Map |
elements
the children |
protected List |
eventListeners
the eventListeners |
static EventType |
NUMBER_CHANGED_EVENT
NUMBER_CHANGED_EVENT is fired whenever the number of children changes |
protected Context |
parent
the parent context |
protected NameParser |
parser
the nameParser |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
|---|
listeners |
| Fields inherited from interface javax.naming.event.EventContext |
|---|
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE |
| Fields inherited from interface javax.naming.Context |
|---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
|---|
FIRST_POSITION, LAST_POSITION |
| Constructor Summary | |
|---|---|
JVMContext()
constructs a new JVMContext. |
|
JVMContext(Context parent,
String atomicName)
constructs a new JVMContext |
|
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
|---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
|---|
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
| Field Detail |
|---|
public static final EventType NUMBER_CHANGED_EVENT
public static final EventType CHILD_ADDED_EVENT
public static final EventType CHILD_REMOVED_EVENT
protected Context parent
protected Map elements
protected List eventListeners
protected NameParser parser
| Constructor Detail |
|---|
public JVMContext()
public JVMContext(Context parent,
String atomicName)
parent - the parent contextatomicName - the atomicname| Method Detail |
|---|
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()
public Object lookup(Name name)
throws NamingException
lookup in interface ContextNamingExceptionContext.lookup(Name)
public Object lookup(String arg0)
throws NamingException
lookup in interface ContextNamingExceptionContext.lookup(String)
public void bind(Name name,
Object value)
throws NamingException
bind in interface ContextNamingExceptionContext.bind(Name, Object)
public void bind(String name,
Object value)
throws NamingException
bind in interface ContextNamingExceptionContext.bind(String, Object)
public void rebind(Name name,
Object value)
throws NamingException
rebind in interface ContextNamingExceptionContext.rebind(Name, Object)
public void rebind(String name,
Object value)
throws NamingException
rebind in interface ContextNamingExceptionContext.rebind(String, Object)
public void unbind(Name name)
throws NamingException
unbind in interface ContextNamingExceptionContext.unbind(Name)
public void unbind(String name)
throws NamingException
unbind in interface ContextNamingExceptionContext.unbind(String)
public void rename(Name nameOld,
Name nameNew)
throws NamingException
rename in interface ContextNamingExceptionContext.rename(Name, Name)
public void rename(String nameOld,
String nameNew)
throws NamingException
rename in interface ContextNamingExceptionContext.rename(String, String)public NamingEnumeration list(Name name)
list in interface ContextContext.list(Name)public NamingEnumeration list(String name)
list in interface ContextContext.list(String)public NamingEnumeration listBindings(Name name)
listBindings in interface ContextContext.listBindings(Name)public NamingEnumeration listBindings(String name)
listBindings in interface ContextContext.listBindings(String)
public void destroySubcontext(Name name)
throws NamingException
destroySubcontext in interface ContextNamingExceptionContext.destroySubcontext(Name)
public void destroySubcontext(String name)
throws NamingException
destroySubcontext in interface ContextNamingExceptionContext.destroySubcontext(String)
public Context createSubcontext(Name name)
throws NamingException
createSubcontext in interface ContextNamingExceptionContext.createSubcontext(Name)
public Context createSubcontext(String arg0)
throws NamingException
createSubcontext in interface ContextNamingExceptionContext.createSubcontext(String)public Object lookupLink(Name name)
lookupLink in interface ContextContext.lookupLink(Name)
public Object lookupLink(String name)
throws NamingException
lookupLink in interface ContextNamingExceptionContext.lookupLink(String)public NameParser getNameParser(Name name)
getNameParser in interface ContextContext.getNameParser(Name)public NameParser getNameParser(String name)
getNameParser in interface ContextContext.getNameParser(String)
public Name composeName(Name arg0,
Name arg1)
throws NamingException
composeName in interface ContextNamingExceptionContext.composeName(Name, Name)
public String composeName(String arg0,
String arg1)
throws NamingException
composeName in interface ContextNamingExceptionContext.composeName(String, String)
public Object addToEnvironment(String arg0,
Object arg1)
throws NamingException
addToEnvironment in interface ContextNamingExceptionContext.addToEnvironment(String, Object)
public Object removeFromEnvironment(String arg0)
throws NamingException
removeFromEnvironment in interface ContextNamingExceptionContext.removeFromEnvironment(String)
public Hashtable getEnvironment()
throws NamingException
getEnvironment in interface ContextNamingExceptionContext.getEnvironment()public void close()
close in interface ContextContext.close()
public String getNameInNamespace()
throws NamingException
getNameInNamespace in interface ContextNamingExceptionContext.getNameInNamespace()
public void addNamingListener(Name target,
int scope,
NamingListener l)
addNamingListener in interface EventContext#addNamingListener(Name, int,
NamingListener)
public void addNamingListener(String target,
int scope,
NamingListener l)
throws NamingException
addNamingListener in interface EventContextNamingException#addNamingListener(String, int,
NamingListener)public void removeNamingListener(NamingListener l)
removeNamingListener in interface EventContext#removeNamingListener(NamingListener)public boolean targetMustExist()
targetMustExist in interface EventContextEventContext.targetMustExist()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||