org.objectweb.jonathan.libs.kernel
Class TreeContextFactory

java.lang.Object
  extended by org.objectweb.jonathan.libs.kernel.JContextFactory
      extended by org.objectweb.jonathan.libs.kernel.TreeContextFactory
All Implemented Interfaces:
ContextFactory
Direct Known Subclasses:
JConfigurationFactory

public class TreeContextFactory
extends JContextFactory


Nested Class Summary
protected  class TreeContextFactory.TreeContext
           
 
Nested classes/interfaces inherited from class org.objectweb.jonathan.libs.kernel.JContextFactory
JContextFactory.ContextElement, JContextFactory.JContext
 
Field Summary
static boolean check_types
          Indicates whether type checking should be performed.
static TreeContextFactory instance
           
 
Constructor Summary
TreeContextFactory()
           
 
Method Summary
 Context newContext()
          Returns a new TreeContext instance.
 Context newContext(Context _scope)
          Returns a new TreeContext instance with scope scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

check_types

public static final boolean check_types
Indicates whether type checking should be performed.

See Also:
Constant Field Values

instance

public static final TreeContextFactory instance
Constructor Detail

TreeContextFactory

public TreeContextFactory()
Method Detail

newContext

public Context newContext()
Returns a new TreeContext instance.

Specified by:
newContext in interface ContextFactory
Overrides:
newContext in class JContextFactory
Returns:
a new TreeContextFactory.TreeContext instance.

newContext

public Context newContext(Context _scope)
Returns a new TreeContext instance with scope scope.

_scope must have been acquired by the caller first, if it is to be shared.

Specified by:
newContext in interface ContextFactory
Overrides:
newContext in class JContextFactory
Parameters:
scope - the scope of the returned context instance;
Returns:
a new TreeContext instance.