public final class VoidReturnDelegate extends Object implements ReturnDelegate
ReturnDelegate intended for operations which return Void and that were executed with a
ExecutionContextAdapter
It returns the CoreEvent that ExecutionContextAdapter provides. Notices that this class will fail if used with
any other type of ExecutionContext
This class is intended to be used as a singleton, use the INSTANCE attribute to access the instance| Modifier and Type | Field and Description |
|---|---|
static ReturnDelegate |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
CoreEvent |
asReturnValue(Object value,
ExecutionContextAdapter operationContext)
Adapts the
value into an CoreEvent |
public static final ReturnDelegate INSTANCE
public CoreEvent asReturnValue(Object value, ExecutionContextAdapter operationContext)
value into an CoreEventasReturnValue in interface ReturnDelegatevalue - the value to be returnedoperationContext - the ExecutionContextAdapter on which the operation was executedEventedExecutionContext.getEvent()Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.