
public abstract class ContextFactory extends Object
Context singleton.| Constructor and Description |
|---|
ContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Context |
getContext()
Gets the
Context singleton. |
static Context |
newContext()
Creates a new instance of the configured
Context implementation. |
public ContextFactory()
public static Context getContext()
Context singleton.
By default this class will instantiate a new context and hold it in a
static class variable as the singleton to return for other calls. This
behaviour can be changed by setting a system property with key
org.jdtaus.core.container.ContextFactory to the name of a
class defining a public static Context getContext() method
returning the singleton instance of Context.
Context instance.ContextError - for unrecoverable context errors.newContext()public static Context newContext()
Context implementation.
The context implementation to be used can be controlled via a system
property with key org.jdtaus.core.container.Context set
to a class name to be loaded as the context implementation.
This method should be used by getContext() implementors to
retrieve a new Context instance.
Context
implementation.ContextError - for unrecoverable context errors.Copyright © 2005-2012 jDTAUS. All Rights Reserved.