|
||||||||||
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 atomicnameMethod Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Object.clone()
public Object lookup(Name name) throws NamingException
lookup
in interface Context
NamingException
Context.lookup(Name)
public Object lookup(String arg0) throws NamingException
lookup
in interface Context
NamingException
Context.lookup(String)
public void bind(Name name, Object value) throws NamingException
bind
in interface Context
NamingException
Context.bind(Name, Object)
public void bind(String name, Object value) throws NamingException
bind
in interface Context
NamingException
Context.bind(String, Object)
public void rebind(Name name, Object value) throws NamingException
rebind
in interface Context
NamingException
Context.rebind(Name, Object)
public void rebind(String name, Object value) throws NamingException
rebind
in interface Context
NamingException
Context.rebind(String, Object)
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
Context.unbind(Name)
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
Context.unbind(String)
public void rename(Name nameOld, Name nameNew) throws NamingException
rename
in interface Context
NamingException
Context.rename(Name, Name)
public void rename(String nameOld, String nameNew) throws NamingException
rename
in interface Context
NamingException
Context.rename(String, String)
public NamingEnumeration list(Name name)
list
in interface Context
Context.list(Name)
public NamingEnumeration list(String name)
list
in interface Context
Context.list(String)
public NamingEnumeration listBindings(Name name)
listBindings
in interface Context
Context.listBindings(Name)
public NamingEnumeration listBindings(String name)
listBindings
in interface Context
Context.listBindings(String)
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
Context.destroySubcontext(Name)
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
Context.destroySubcontext(String)
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
Context.createSubcontext(Name)
public Context createSubcontext(String arg0) throws NamingException
createSubcontext
in interface Context
NamingException
Context.createSubcontext(String)
public Object lookupLink(Name name)
lookupLink
in interface Context
Context.lookupLink(Name)
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
NamingException
Context.lookupLink(String)
public NameParser getNameParser(Name name)
getNameParser
in interface Context
Context.getNameParser(Name)
public NameParser getNameParser(String name)
getNameParser
in interface Context
Context.getNameParser(String)
public Name composeName(Name arg0, Name arg1) throws NamingException
composeName
in interface Context
NamingException
Context.composeName(Name, Name)
public String composeName(String arg0, String arg1) throws NamingException
composeName
in interface Context
NamingException
Context.composeName(String, String)
public Object addToEnvironment(String arg0, Object arg1) throws NamingException
addToEnvironment
in interface Context
NamingException
Context.addToEnvironment(String, Object)
public Object removeFromEnvironment(String arg0) throws NamingException
removeFromEnvironment
in interface Context
NamingException
Context.removeFromEnvironment(String)
public Hashtable getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
Context.getEnvironment()
public void close()
close
in interface Context
Context.close()
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
Context.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 EventContext
NamingException
#addNamingListener(String, int,
NamingListener)
public void removeNamingListener(NamingListener l)
removeNamingListener
in interface EventContext
#removeNamingListener(NamingListener)
public boolean targetMustExist()
targetMustExist
in interface EventContext
EventContext.targetMustExist()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |