T
- the generic type of the actual parameter type@NoImplement public interface Literal<T>
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
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getLiteralValue()
The parameter's literal value, as was written in the DSL
|
Class<T> |
getType() |
Optional<String> getLiteralValue()
Optional.empty()
if the value was not providedCopyright © 2018. All rights reserved.