public class CaptureResultCallback<T> extends Object implements ComponentEventCallback<T>
ComponentEventCallback
that simply captures the result value.Constructor and Description |
---|
CaptureResultCallback() |
Modifier and Type | Method and Description |
---|---|
static <T> CaptureResultCallback<T> |
create() |
T |
getResult() |
boolean |
handleResult(T result)
Invoked to handle a non-null event handler method result.
|
public CaptureResultCallback()
public boolean handleResult(T result)
ComponentEventCallback
Event.isAborted()
will return true.handleResult
in interface ComponentEventCallback<T>
result
- the result value returned from the event handler methodpublic static <T> CaptureResultCallback<T> create()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.