Created
January 19, 2013 17:15
-
-
Save donatasnicequestion/4573748 to your computer and use it in GitHub Desktop.
/** Utility bean, decleared and configured in a task-flow-template.xml * as a request scoped bean to suport a parameter passing * between ADF task flows * * @param <T> task flow input parameter type * @param <R> task flow return value type * * @author Donatas Valys */
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nicequestion.donatas.adf.commons; | |
/** Utility bean, decleared and configured in a task-flow-template.xml | |
* as a request scoped bean to suport a parameter passing | |
* between ADF task flows | |
* | |
* @param <T> task flow input parameter type | |
* @param <R> task flow return value type | |
* | |
* @author Donatas Valys | |
*/ | |
public final class TaskFlowCall<T,R> implements TaskFlowParameters<T,R> { | |
/** Receiving task flow injected on a flow call | |
* as configured in a task-flow-template.xml | |
*/ | |
private TaskFlowParameters<T,R> flowController; | |
public TaskFlowCall() { | |
super(); | |
} | |
public final void setFlowController(TaskFlowParameters<T,R> flowController) { | |
this.flowController = flowController; | |
} | |
/** Forward an input value to a receiving flow | |
* | |
* @param inputParameter input provided by a caller | |
*/ | |
public final void setInputParameter(T inputParameter) { | |
flowController.setInputParameter(inputParameter); | |
} | |
/** Return value to a caller from a called flow | |
* | |
* @return return provided by a receiver flow | |
*/ | |
public final R getReturnValue() { | |
return flowController.getReturnValue(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment