public final class EventArgumentResolver extends Object implements ArgumentResolver<MuleEvent>
ArgumentResolver which
returns the MuleEvent 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 EventArgumentResolver |
getInstance() |
MuleEvent |
resolve(org.mule.extension.runtime.OperationContext operationContext)
Resolves an argument's value from the given
operationContext |
public static EventArgumentResolver getInstance()
public MuleEvent resolve(org.mule.extension.runtime.OperationContext operationContext)
operationContextresolve in interface ArgumentResolver<MuleEvent>operationContext - an OperationContextCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.