org.objectweb.jonathan.libs.kernel
Class JConfigurationFactory.JConfiguration

java.lang.Object
  |
  +--org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
        |
        +--org.objectweb.jonathan.libs.kernel.TreeContextFactory.TreeContext
              |
              +--org.objectweb.jonathan.libs.kernel.JConfigurationFactory.JConfiguration
All Implemented Interfaces:
Configuration, Context
Enclosing class:
JConfigurationFactory

protected class JConfigurationFactory.JConfiguration
extends TreeContextFactory.TreeContext
implements Configuration


Inner classes inherited from class org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
JContextFactory.JContext.InnerEnumeration
 
Inner classes inherited from class org.objectweb.jonathan.apis.kernel.Context
Context.NO_VALUE
 
Fields inherited from class org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
enclosing_context, id
 
Fields inherited from interface org.objectweb.jonathan.apis.kernel.Context
NO_VALUE
 
Constructor Summary
protected JConfigurationFactory.JConfiguration()
           
protected JConfigurationFactory.JConfiguration(ClassLoader class_loader)
           
protected JConfigurationFactory.JConfiguration(Context _scope)
           
protected JConfigurationFactory.JConfiguration(Context _scope, ClassLoader _class_loader)
          Builds a root JConfiguration.
 
Method Summary
 void addAlias(String _name, String _alias, char _separator)
           
 void addAssemblage(String _name, String _factory, String _configuration, char _separator)
           
 void addAtom(String _name, String _classe, char _separator)
           
protected  Element getElement(String name, boolean local)
          Returns the element identified by name, or null if none exists.
protected  JContextFactory.ContextElement newContextElement()
          Creates a new empty context element.
protected  void recycle()
           
 void reset()
          Resets the target context, removing all its current elements.
 String toString()
           
 
Methods inherited from class org.objectweb.jonathan.libs.kernel.TreeContextFactory.TreeContext
addLocalElement, setParent
 
Methods inherited from class org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
acquire, addElement, addElement, addElement, addElement, addElement, addOrGetContext, addOrGetLocalContext, finalize, getElement, getElement, getElements, getIntValue, getIntValue, getScope, getValue, getValue, newContextElement, release, setScope
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonathan.apis.kernel.Context
acquire, addElement, addElement, addElement, addElement, addElement, getElement, getElement, getElements, getIntValue, getIntValue, getScope, getValue, getValue, release, setScope
 

Constructor Detail

JConfigurationFactory.JConfiguration

protected JConfigurationFactory.JConfiguration()

JConfigurationFactory.JConfiguration

protected JConfigurationFactory.JConfiguration(Context _scope)

JConfigurationFactory.JConfiguration

protected JConfigurationFactory.JConfiguration(Context _scope,
                                               ClassLoader _class_loader)
Builds a root JConfiguration.
Parameters:
_scope -  
_class_loader -  

JConfigurationFactory.JConfiguration

protected JConfigurationFactory.JConfiguration(ClassLoader class_loader)
Method Detail

addAtom

public void addAtom(String _name,
                    String _classe,
                    char _separator)
             throws JonathanException
Specified by:
addAtom in interface Configuration

addAssemblage

public void addAssemblage(String _name,
                          String _factory,
                          String _configuration,
                          char _separator)
                   throws JonathanException
Specified by:
addAssemblage in interface Configuration

addAlias

public void addAlias(String _name,
                     String _alias,
                     char _separator)
              throws JonathanException
Specified by:
addAlias in interface Configuration

toString

public String toString()
Overrides:
toString in class TreeContextFactory.TreeContext

reset

public void reset()
Description copied from interface: Context
Resets the target context, removing all its current elements.
Specified by:
reset in interface Context
Overrides:
reset in class JContextFactory.JContext

recycle

protected void recycle()
Overrides:
recycle in class TreeContextFactory.TreeContext

getElement

protected Element getElement(String name,
                             boolean local)
Description copied from class: TreeContextFactory.TreeContext
Returns the element identified by name, or null if none exists.
Overrides:
getElement in class TreeContextFactory.TreeContext
Following copied from class: org.objectweb.jonathan.libs.kernel.TreeContextFactory.TreeContext
Parameters:
name -  
local - if true, don't search the enclosing context.
Returns:
the element identified by name, or null if none exists.

newContextElement

protected JContextFactory.ContextElement newContextElement()
Description copied from class: JContextFactory.JContext
Creates a new empty context element.
Overrides:
newContextElement in class JContextFactory.JContext
Following copied from class: org.objectweb.jonathan.libs.kernel.JContextFactory.JContext
Returns:
a new context element.