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 singletonModifier 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)
ArgumentResolver
operationContext
resolve
in interface ArgumentResolver<MuleMessage>
operationContext
- an OperationContext
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.