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

java.lang.Object
  extended by org.objectweb.deployment.scheduling.core.lib.AbstractTask
      extended by org.objectweb.deployment.scheduling.component.lib.AbstractRequireInstanceProviderTask
          extended by org.objectweb.deployment.scheduling.component.lib.AbstractConfigurationTask
              extended by org.objectweb.deployment.scheduling.component.lib.AbstractBindingGetterTask
All Implemented Interfaces:
BindingGetterTask, BindingProviderTask, ConfigurationTask, RequireInstanceProviderTask, Task

public abstract class AbstractBindingGetterTask
extends AbstractConfigurationTask
implements BindingGetterTask

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

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

Constructor Summary
AbstractBindingGetterTask()
          The default constructor.
 
Method Summary
 Object getBinding()
          Return the reference of a component binding.
 Object getResult()
          Return the result of the execution.
 void setBinding(Object reference)
          Set the reference of a component binding.
 void setResult(Object result)
          Set the result of the execution.
 
Methods inherited from class org.objectweb.deployment.scheduling.component.lib.AbstractConfigurationTask
getFeatureName, setFeatureName
 
Methods inherited from class org.objectweb.deployment.scheduling.component.lib.AbstractRequireInstanceProviderTask
getInstanceProviderTask, setInstanceProviderTask
 
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.component.api.ConfigurationTask
getFeatureName, setFeatureName
 
Methods inherited from interface org.objectweb.deployment.scheduling.component.api.RequireInstanceProviderTask
getInstanceProviderTask, setInstanceProviderTask
 
Methods inherited from interface org.objectweb.deployment.scheduling.core.api.Task
addPreviousTask, execute, getPreviousTasks, removePreviousTask
 

Constructor Detail

AbstractBindingGetterTask

public AbstractBindingGetterTask()
The default constructor.

Method Detail

getBinding

public Object getBinding()
Return the reference of a component binding.

Specified by:
getBinding in interface BindingProviderTask
Returns:
The reference of a component binding.

setBinding

public void setBinding(Object reference)
Set the reference of a component binding.

Specified by:
setBinding in interface BindingProviderTask
Parameters:
reference - - The reference of a component binding.

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?