public class JVMContext extends nl.tudelft.simulation.event.EventProducer implements EventContext, nl.tudelft.simulation.event.EventProducerInterface, Serializable
(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.
| Modifier and Type | Field and Description |
|---|---|
static nl.tudelft.simulation.event.EventType |
CHILD_ADDED_EVENT
CHILD_ADDED_EVENT is fired whenever a child is added
|
static nl.tudelft.simulation.event.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 nl.tudelft.simulation.event.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
|
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEAPPLET, 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| Constructor and Description |
|---|
JVMContext()
constructs a new JVMContext.
|
JVMContext(Context parent,
String atomicName)
constructs a new JVMContext
|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListenerpublic static final nl.tudelft.simulation.event.EventType NUMBER_CHANGED_EVENT
public static final nl.tudelft.simulation.event.EventType CHILD_ADDED_EVENT
public static final nl.tudelft.simulation.event.EventType CHILD_REMOVED_EVENT
protected Context parent
protected Map elements
protected List eventListeners
protected NameParser parser
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()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.