Type Parameters:
T - the generic type of the actual parameter type
All Superinterfaces:
org.mule.sdk.api.runtime.parameter.Literal<T>

@MinMuleVersion("4.1") @NoImplement public interface Literal<T> extends org.mule.sdk.api.runtime.parameter.Literal<T>
A parameter type which allows to get values as they were provided in the DSL, preventing the runtime from resolving expressions or applying any transformations. This is useful when such evaluation should be delegated into a third party.

In the particular case of configurations and connection providers, using literal parameters allows that configuration to be treated as a static one instead of dynamic. This is so because the literal value is constant, even if that literal is actually an expression. Because the runtime won't be evaluating it automatically, it's an static value, from the extension's point of view.

If the value was provided as an expression, this class will provide such expression but will offer no way to actually evaluate it. Use ParameterResolver for that. Finally, a super important consideration to have is the generic type. The ParameterModel derived from uses of this interface will have its type set according to the generic type. The generic is not optional

Since:
1.0
  • Method Summary

    Methods inherited from interface org.mule.sdk.api.runtime.parameter.Literal

    getLiteralValue, getType