org.objectweb.deployment.scheduling.component.lib
Class AbstractInstanceProviderTask

java.lang.Object
  extended by org.objectweb.deployment.scheduling.core.lib.AbstractTask
      extended by org.objectweb.deployment.scheduling.component.lib.AbstractRequireFactoryProviderTask
          extended by org.objectweb.deployment.scheduling.component.lib.AbstractInstanceProviderTask
All Implemented Interfaces:
InstanceProviderTask, RequireFactoryProviderTask, Task
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, Frédéric Briclet

Constructor Summary
AbstractInstanceProviderTask()
          The default constructor.
 
Method Summary
 Object getInstance()
          Return the reference of a component instance.
 Object getResult()
          Return the result of the execution.
 void setInstance(Object reference)
          Set the reference of a component instance.
 void setResult(Object result)
          Set the result of the execution.
 
Methods inherited from class org.objectweb.deployment.scheduling.component.lib.AbstractRequireFactoryProviderTask
getFactoryProviderTask, setFactoryProviderTask
 
Methods inherited from class org.objectweb.deployment.scheduling.core.lib.AbstractTask
addPreviousTask, getPreviousTaskList, getPreviousTasks, removePreviousTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.deployment.scheduling.core.api.Task
addPreviousTask, execute, getPreviousTasks, removePreviousTask
 

Constructor Detail

AbstractInstanceProviderTask

public AbstractInstanceProviderTask()
The default constructor.

Method Detail

getInstance

public 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(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 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?