public final class MethodArgumentResolverDelegate extends Object implements ArgumentResolverDelegate, org.mule.runtime.api.lifecycle.Initialisable
ComponentModel's parameterModels by matching them to the arguments in
a Method| Constructor and Description |
|---|
MethodArgumentResolverDelegate(List<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel> parameterGroupModels,
Method method)
Creates a new instance for the given
method |
| Modifier and Type | Method and Description |
|---|---|
ArgumentResolver<?>[] |
getArgumentResolvers() |
void |
initialise() |
Object[] |
resolve(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext,
Class<?>[] parameterTypes)
Returns an object array with the argument values of the given
executionContext |
Supplier<Object>[] |
resolveDeferred(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext,
Class<?>[] parameterTypes)
Returns an array of
Supplier of the argument values of the given executionContext. |
public ArgumentResolver<?>[] getArgumentResolvers()
getArgumentResolvers in interface ArgumentResolverDelegateresolvers used for resolving parameterspublic Object[] resolve(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext, Class<?>[] parameterTypes)
ArgumentResolverDelegateexecutionContextresolve in interface ArgumentResolverDelegateexecutionContext - the context of an ComponentModel being currently executedparameterTypes - each argument's typepublic Supplier<Object>[] resolveDeferred(org.mule.runtime.extension.api.runtime.operation.ExecutionContext executionContext, Class<?>[] parameterTypes)
ArgumentResolverDelegateSupplier of the argument values of the given executionContext.
Actual resolution of each argument is deferred until the Supplier.get() method is invoked on each supplier
resolveDeferred in interface ArgumentResolverDelegateexecutionContext - the context of an ComponentModel being currently executedparameterTypes - each argument's typeSupplier arraypublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.