public class ConnectionArgumentResolver extends Object implements ArgumentResolver<Object>
ExtensionProperties.CONNECTION_PARAM variable, which is expected to have been previously set
on the supplied ExecutionContext.
Notice that for this to work, the ExecutionContext has to be an instance of ExecutionContextAdapter
| Constructor and Description |
|---|
ConnectionArgumentResolver() |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolve(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext)
Returns the connection previously set on the
executionContext under the key
ExtensionProperties.CONNECTION_PARAM |
public Object resolve(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext)
executionContext under the key
ExtensionProperties.CONNECTION_PARAMresolve in interface ArgumentResolver<Object>executionContext - an ExecutionContextIllegalArgumentException - if the connection was not setClassCastException - if executionContext is not an ExecutionContextAdapterCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.