org.objectweb.deployment.scheduling.component.lib
Class AbstractAttributeSetterTask
java.lang.Object
org.objectweb.deployment.scheduling.core.lib.AbstractTask
org.objectweb.deployment.scheduling.component.lib.AbstractRequireInstanceProviderTask
org.objectweb.deployment.scheduling.component.lib.AbstractConfigurationTask
org.objectweb.deployment.scheduling.component.lib.AbstractAttributeSetterTask
- All Implemented Interfaces:
- AttributeSetterTask, ConfigurationTask, RequireInstanceProviderTask, Task
public abstract class AbstractAttributeSetterTask
- extends AbstractConfigurationTask
- implements AttributeSetterTask
AbstractAttributeSetterTask implements AttributeSetterTask.
Subclasses must implement:
- public void execute(Object context) throws Exception;
- Version:
- 0.2
- Author:
- Philippe Merle, Frédéric Briclet
Method Summary |
Object |
getResult()
Return the result of the execution. |
Object |
getValue()
Return the value of the component attribute to configure. |
void |
setResult(Object result)
Set the result of the execution. |
void |
setValue(Object value)
Set the value of the component attribute to configure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAttributeSetterTask
public AbstractAttributeSetterTask()
- The default constructor.
getValue
public Object getValue()
- Return the value of the component attribute to configure.
- Specified by:
getValue
in interface AttributeSetterTask
- Returns:
- The value of the component attribute to configure.
setValue
public void setValue(Object value)
- Set the value of the component attribute to configure.
- Specified by:
setValue
in interface AttributeSetterTask
- Parameters:
value
- - The value of the component attribute to configure.
getResult
public Object getResult()
- Return the result of the execution.
- Specified by:
getResult
in interface Task
- Returns:
- The result of the execution.
setResult
public void setResult(Object result)
- Set the result of the execution.
- Specified by:
setResult
in interface Task
- Parameters:
result
- - The result of the execution.
TODO: Is it really useful to provide this method?