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

java.lang.Object
  extended by org.objectweb.deployment.scheduling.core.lib.AbstractTask
      extended by org.objectweb.deployment.scheduling.component.lib.AbstractFactoryProviderTask
All Implemented Interfaces:
FactoryProviderTask, Task
Direct Known Subclasses:
AbstractInstallationTask

public abstract class AbstractFactoryProviderTask
extends AbstractTask
implements FactoryProviderTask

AbstractFactoryProviderTask implements FactoryProviderTask. Subclasses must implement: - public void execute(Object context) throws Exception;

Version:
0.2
Author:
Philippe Merle, Frédéric Briclet

Constructor Summary
AbstractFactoryProviderTask()
          The default constructor.
 
Method Summary
 Object getFactory()
          Return the reference of a component factory.
 Object getResult()
          Return the result of the execution.
 void setFactory(Object reference)
          Set the reference of a component factory.
 void setResult(Object result)
          Set the result of the execution.
 
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

AbstractFactoryProviderTask

public AbstractFactoryProviderTask()
The default constructor.

Method Detail

getFactory

public Object getFactory()
Return the reference of a component factory.

Specified by:
getFactory in interface FactoryProviderTask
Returns:
The reference of a component factory.

setFactory

public void setFactory(Object reference)
Set the reference of a component factory.

Specified by:
setFactory in interface FactoryProviderTask
Parameters:
reference - - The reference of a component factory.

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?