org.objectweb.jonathan.libs.kernel
Class TreeContextFactory.TreeContext
java.lang.Object
org.objectweb.jonathan.libs.kernel.JComponent
org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
org.objectweb.jonathan.libs.kernel.TreeContextFactory.TreeContext
- All Implemented Interfaces:
- Component, Context, Forkable
- Direct Known Subclasses:
- JConfigurationFactory.JConfiguration
- Enclosing class:
- TreeContextFactory
- protected class TreeContextFactory.TreeContext
- extends JContextFactory.JContext
Fields inherited from interface org.objectweb.jonathan.apis.kernel.Context |
NO_VALUE |
Methods inherited from class org.objectweb.jonathan.libs.kernel.JContextFactory.JContext |
acquire, addElement, addElement, addElement, addElement, addElement, addElement, addOrGetContext, addOrGetContext, addOrGetLocalContext, finalize, getComponent, getElement, getElement, getElements, getFactoryValue, getIntValue, getIntValue, getScope, getValue, handleScopeElement, internalFork, newComponent, newComponent, newContextElement, release, reset, setScope |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
self_element
protected Element self_element
- element representing the current context. Initialized by the constructors.
TreeContextFactory.TreeContext
protected TreeContextFactory.TreeContext()
- Constructs a new TreeContext instance.
TreeContextFactory.TreeContext
protected TreeContextFactory.TreeContext(Context _context)
toString
public java.lang.String toString()
- Overrides:
toString
in class JContextFactory.JContext
getAbsoluteName
public Name getAbsoluteName()
recycle
protected void recycle()
- Overrides:
recycle
in class JContextFactory.JContext
getElement
protected Element getElement(java.lang.String _name,
boolean _local)
- Returns the element identified by name, or null if none exists.
- Overrides:
getElement
in class JContextFactory.JContext
- Parameters:
_name
- a local name;_local
- if true, don't search the enclosing context.
- Returns:
- the element identified by name, or null if none exists.
addLocalElement
protected Element addLocalElement(JContextFactory.ContextElement _element,
boolean _check_types)
throws JonathanException
- Adds an Element to the Context if no other exists with the same name.
must be called in a synchronized context
- Overrides:
addLocalElement
in class JContextFactory.JContext
- Parameters:
_check_types
- indicates whether types should be checked.
- Returns:
- the Element already present in the Context with the same name,
null if none existed.
- Throws:
JonathanException
- if something wrong occurs.
duplicate
public Component duplicate()
- Overrides:
duplicate
in class JContextFactory.JContext
newContextElement
protected JContextFactory.ContextElement newContextElement(Context _container)
- Description copied from class:
JContextFactory.JContext
- Creates a new empty context element.
- Overrides:
newContextElement
in class JContextFactory.JContext
- Returns:
- a new context element.