Package org.exoplatform.container
Class ComponentTask<T>
java.lang.Object
org.exoplatform.container.ComponentTask<T>
This class represents a task to be launched to change the state of a component
- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Constructor Summary
ConstructorsConstructorDescriptionComponentTask(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
Modifier and TypeMethodDescriptionfinal Tcall(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx) protected abstract Texecute(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx) This is what is actually executedgetName()getType()
-
Constructor Details
-
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 Details
-
getName
- Returns:
- the name
-
getContainer
- Returns:
- the container
-
getCaller
- Returns:
- the caller
-
getType
- Returns:
- the type of the task
-
call
public final T call(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx) throws Exception - Throws:
Exception
-
execute
protected abstract T execute(org.exoplatform.container.ConcurrentContainer.CreationalContextComponentAdapter<?> cCtx) throws Exception This is what is actually executed- Throws:
Exception
-