org.objectweb.jonathan.apis.kernel

Interface ContextFactory

Known Subinterfaces:
ConfigurationFactory
Known Implementing Classes:
JConfigurationFactory, JContextFactory, TreeContextFactory

public interface ContextFactory

Interface for context factories.

Method Summary

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

Method Details

newContext

public Context newContext()
Returns a new Context instance.

Returns:
a new Context instance.


newContext

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

Parameters:
scope - the scope of the returned context instance;

Returns:
a new Context instance.