org.objectweb.jonathan.libs.kernel
Class JContextFactory
java.lang.Object
|
+--org.objectweb.jonathan.libs.kernel.JContextFactory
- All Implemented Interfaces:
- ContextFactory
- Direct Known Subclasses:
- TreeContextFactory
- public class JContextFactory
- extends Object
- implements ContextFactory
Implementation of ContextFactory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
check_types
public static final boolean check_types
- Indicates whether type checking should be performed.
instance
public static final JContextFactory instance
JContextFactory
public JContextFactory()
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.