org.objectweb.fractal.task.deployment.lib
Class AbstractInstanceProviderTask
java.lang.Object
org.objectweb.fractal.task.core.AbstractTask
org.objectweb.fractal.task.deployment.lib.AbstractRequireFactoryProviderTask
org.objectweb.fractal.task.deployment.lib.AbstractInstanceProviderTask
- All Implemented Interfaces:
- Task, InstanceProviderTask, RequireFactoryProviderTask
- Direct Known Subclasses:
- AbstractInstantiationTask
public abstract class AbstractInstanceProviderTask
- extends AbstractRequireFactoryProviderTask
- implements InstanceProviderTask
AbstractInstanceProviderTask implements InstanceProviderTask.
Subclasses must implement: - public void execute(Object context) throws
Exception;
- Version:
- 0.2
- Author:
- Philippe Merle, Frederic Briclet
|
Method Summary |
java.lang.Object |
getInstance()
Return the reference of a component instance. |
java.lang.Object |
getResult()
Return the result of the execution. |
void |
setInstance(java.lang.Object reference)
Set the reference of a component instance. |
void |
setResult(java.lang.Object result)
Set the result of the execution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInstanceProviderTask
public AbstractInstanceProviderTask()
- The default constructor.
getInstance
public java.lang.Object getInstance()
- Return the reference of a component instance.
- Specified by:
getInstance in interface InstanceProviderTask
- Returns:
- The reference of a component instance.
setInstance
public void setInstance(java.lang.Object reference)
- Set the reference of a component instance.
- Specified by:
setInstance in interface InstanceProviderTask
- Parameters:
reference - -
The reference of a component instance.
getResult
public java.lang.Object getResult()
- Return the result of the execution.
- Specified by:
getResult in interface Task
- Returns:
- The result of the execution.
setResult
public void setResult(java.lang.Object result)
- Set the result of the execution.
- Parameters:
result - -
The result of the execution.
TODO: Is it really useful to provide this method?
Copyright © 2001-2010 ObjectWeb Consortium. All Rights Reserved.