public final class MessageArgumentResolver extends Object implements ArgumentResolver<MuleMessage>
ArgumentResolver which
returns the MuleMessage associated with a given
OperationContext.
Notice that for this to work, the OperationContext
has to be an instance of OperationContextAdapter
Because this ArgumentResolver is stateless and thread-safe,
it is exposed as a singleton| Modifier and Type | Method and Description |
|---|---|
static MessageArgumentResolver |
getInstance() |
MuleMessage |
resolve(org.mule.extension.runtime.OperationContext operationContext)
Resolves an argument's value from the given
operationContext |
public static MessageArgumentResolver getInstance()
public MuleMessage resolve(org.mule.extension.runtime.OperationContext operationContext)
ArgumentResolveroperationContextresolve in interface ArgumentResolver<MuleMessage>operationContext - an OperationContextCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.