org.objectweb.jonathan.libs.kernel
Class JContextFactory

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

public class JContextFactory
extends java.lang.Object
implements ContextFactory

Implementation of ContextFactory.


Nested Class Summary
static class JContextFactory.ContextElement
          Class of the context elements used by JContextFactory.
protected  class JContextFactory.JContext
          Implementation of Context.
 
Field Summary
static boolean check_types
          Indicates whether type checking should be performed.
static JContextFactory instance
           
 
Constructor Summary
JContextFactory()
           
 
Method Summary
 Context newContext()
          Returns a new JContext instance.
 Context newContext(Context _scope)
          Returns a new JContext 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 JContextFactory instance
Constructor Detail

JContextFactory

public JContextFactory()
Method Detail

newContext

public Context newContext()
Returns a new JContext instance.

Specified by:
newContext in interface ContextFactory
Returns:
a new JContextFactory.JContext instance.

newContext

public Context newContext(Context _scope)
Returns a new JContext 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
Parameters:
_scope - the scope of the returned context instance;
Returns:
a new JContext instance.