Package org.exoplatform.container
Class ComponentTask<T>
- java.lang.Object
-
- org.exoplatform.container.ComponentTask<T>
-
public abstract class ComponentTask<T> extends Object
This class represents a task to be launched to change the state of a component- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Constructor Summary
Constructors Constructor Description ComponentTask(String name, ConcurrentContainerMT container, DependencyStackListener caller, ComponentTaskType type)The main constructor of a taskComponentTask(ConcurrentContainerMT container, DependencyStackListener caller, ComponentTaskType type)The main constructor of a task
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tcall(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx)protected abstract Texecute(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx)This is what is actually executedDependencyStackListenergetCaller()ConcurrentContainerMTgetContainer()StringgetName()ComponentTaskTypegetType()
-
-
-
Constructor Detail
-
ComponentTask
public ComponentTask(ConcurrentContainerMT container, DependencyStackListener caller, ComponentTaskType type)
The main constructor of a task
-
ComponentTask
public ComponentTask(String name, ConcurrentContainerMT container, DependencyStackListener caller, ComponentTaskType type)
The main constructor of a task
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
getContainer
public ConcurrentContainerMT getContainer()
- Returns:
- the container
-
getCaller
public DependencyStackListener getCaller()
- Returns:
- the caller
-
getType
public ComponentTaskType getType()
- Returns:
- the type of the task
-
call
public final T call(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx) throws Exception
- Throws:
Exception
-
-