org.objectweb.jonathan.libs.kernel

Class JContextFactory

Implemented Interfaces:
ContextFactory
Known Direct 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

Method Summary

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

Field Details

check_types

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

Field Value:
false


instance

public static final JContextFactory instance

Method Details

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:

Returns:
a new JContext instance.