Package org.apache.camel.spi
Interface PropertiesFunction
public interface PropertiesFunction
A function that is applied instead of looking up a property placeholder.
-
Method Summary
Modifier and TypeMethodDescriptionApplies the function.getName()
Name of the function which is used as name: to let the properties component know it is a function.default boolean
lookupFirst
(String remainder) Whether the value should be looked up as a regular properties first, before applying this function.default boolean
If the property value cannot be found should the property be regarded as optional and ignore missing value.
-
Method Details
-
getName
String getName()Name of the function which is used as name: to let the properties component know it is a function. -
apply
Applies the function.- Parameters:
remainder
- the remainder value- Returns:
- a value as the result of the function
- See Also:
-
lookupFirst
Whether the value should be looked up as a regular properties first, before applying this function.- Parameters:
remainder
- the remainder value- Returns:
- true to resolve the remainder value as a property value, and then afterwards apply this function, false to apply this function without lookup (default).
-
optional
If the property value cannot be found should the property be regarded as optional and ignore missing value.- Parameters:
remainder
- the remainder value- Returns:
- true to make this property as optional
-