T - the generic type of the value represented by the literalpublic class StaticLiteralValueResolver<T> extends Object implements ValueResolver<org.mule.runtime.extension.api.runtime.parameter.Literal<T>>
ValueResolver that produces instances of Literal| Constructor and Description |
|---|
StaticLiteralValueResolver(String value,
Class<T> type)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.extension.api.runtime.parameter.Literal<T> |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
public org.mule.runtime.extension.api.runtime.parameter.Literal<T> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
eventresolve in interface ValueResolver<org.mule.runtime.extension.api.runtime.parameter.Literal<T>>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value.
Notice that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<org.mule.runtime.extension.api.runtime.parameter.Literal<T>>falseCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.