- All Known Implementing Classes:
VariableResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface of configuration property values decorators.
- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueDecoratorDefault identity configuration property value decorator. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ValueDecoratorandThen(@NotNull ValueDecorator after) Returns a composed decorator that first applies this decorator to its input, and then applies theafterdecorator to the result.default @NotNull ValueDecoratorcompose(@NotNull ValueDecorator before) Returns a composed decorator that first applies thebeforedecorator to its input, and then applies this decorator to the result.Decorates the configuration property value.
-
Field Details
-
DEFAULT
Default identity configuration property value decorator.
-
-
Method Details
-
decorate
Decorates the configuration property value.- Parameters:
value- The configuration property value.- Returns:
- The decorated configuration property value.
-
compose
Returns a composed decorator that first applies thebeforedecorator to its input, and then applies this decorator to the result. If evaluation of either decorator throws an exception, it is relayed to the caller of the composed decorator.- Parameters:
before- The decorator to apply before this decorator is applied.- Returns:
- A composed decorator that first applies the
beforedecorator and then applies this decorator. - Throws:
NullPointerException- If before is null;- See Also:
-
andThen
Returns a composed decorator that first applies this decorator to its input, and then applies theafterdecorator to the result. If evaluation of either decorator throws an exception, it is relayed to the caller of the composed decorator.- Parameters:
after- The decorator to apply after this decorator is applied.- Returns:
- A composed decorator that first applies this decorator and then
applies the
afterdecorator. - Throws:
NullPointerException- If after is null.- See Also:
-