org.openarchitectureware.workflow.ao
Class AbstractWorkflowAdvice

java.lang.Object
  extended by org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
      extended by org.openarchitectureware.workflow.ao.AbstractWorkflowAdvice
All Implemented Interfaces:
WorkflowComponent, WorkflowComponentWithID
Direct Known Subclasses:
AbstractExpressionsUsingWorkflowAdvice

public abstract class AbstractWorkflowAdvice
extends AbstractWorkflowComponent


Constructor Summary
AbstractWorkflowAdvice()
           
 
Method Summary
protected  java.lang.String buildList(java.util.List<java.lang.String> list)
           
 void checkConfiguration(Issues issues)
          Validates the configuration before invocation.
 java.lang.String getAdviceTarget()
          Returns the advice target.
 void invoke(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
          Invokes the workflow component.
 void setAdviceTarget(java.lang.String adviceTarget)
          Sets the target of the advice.
abstract  void weave(WorkflowComponent component, Issues issues)
          Weaves the advices into the specified component.
 
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getComponentName, getContainer, getId, getLocation, getLogMessage, setContainer, setId, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWorkflowAdvice

public AbstractWorkflowAdvice()
Method Detail

invoke

public final void invoke(WorkflowContext ctx,
                         ProgressMonitor monitor,
                         Issues issues)
Description copied from interface: WorkflowComponent
Invokes the workflow component.

Parameters:
ctx - the current workflow context
monitor - implementors should provide some feedback about the progress using this monitor
issues - facility for reporting possible issues that occur during invocation
See Also:
WorkflowComponent.invoke(org.openarchitectureware.workflow.WorkflowContext, org.openarchitectureware.workflow.monitor.ProgressMonitor, org.openarchitectureware.workflow.issues.Issues)

checkConfiguration

public void checkConfiguration(Issues issues)
Description copied from interface: WorkflowComponent
Validates the configuration before invocation.

Parameters:
issues - facility for reporting configuration issues.
See Also:
WorkflowComponent.checkConfiguration(org.openarchitectureware.workflow.issues.Issues)

setAdviceTarget

public void setAdviceTarget(java.lang.String adviceTarget)
Sets the target of the advice.

Parameters:
adviceTarget - the advice target

getAdviceTarget

public java.lang.String getAdviceTarget()
Returns the advice target.

Returns:
the advice target

weave

public abstract void weave(WorkflowComponent component,
                           Issues issues)
Weaves the advices into the specified component.

Parameters:
component - the component
issues - facility for reporting possible issues during weaving.

buildList

protected java.lang.String buildList(java.util.List<java.lang.String> list)