Class ContextManager
- java.lang.Object
-
- net.anotheria.anodoc.util.context.ContextManager
-
public class ContextManager extends java.lang.ObjectContext manager manages call contextes. It uses a CallContextFactory to create new contextes. Call setFactory prior to anything else.- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description ContextManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallContextgetCallContext()Returns the call context for this thread.static CallContextFactorygetFactory()Returns the set factory.static voidsetCallContext(CallContext value)Setter for the fieldcallContext.static voidsetFactory(CallContextFactory factory)Sets the factory.
-
-
-
Method Detail
-
getCallContext
public static CallContext getCallContext()
Returns the call context for this thread.- Returns:
- a
CallContextobject.
-
setCallContext
public static void setCallContext(CallContext value)
Setter for the field
callContext.- Parameters:
value- aCallContextobject.
-
getFactory
public static CallContextFactory getFactory()
Returns the set factory.- Returns:
- a
CallContextFactoryobject.
-
setFactory
public static void setFactory(CallContextFactory factory)
Sets the factory.- Parameters:
factory- aCallContextFactoryobject.
-
-