T - the generic type of the resolved valuespublic class RequiredParameterValueResolverWrapper<T> extends AbstractValueResolverWrapper<T>
AbstractValueResolverWrapper which throws an IllegalArgumentException if the resolved
value is null.
This wrapper is intended to be used on parameters which have been assigned to an expression, but we want to prevent
that expression from evaluating to null
delegate, muleContext| Constructor and Description |
|---|
RequiredParameterValueResolverWrapper(ValueResolver<T> delegate,
String parameterName,
String literalValue)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
T |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
dispose, initialise, isDynamic, start, stoppublic RequiredParameterValueResolverWrapper(ValueResolver<T> delegate, String parameterName, String literalValue)
delegate - the wrapped ValueResolverparameterName - the name of the parameter this resolver is associated toliteralValue - the evaluated expressionpublic T resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<T>resolve in class AbstractValueResolverWrapper<T>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failsCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.