Class HierarchicalPropertiesEvaluator
- java.lang.Object
-
- org.apache.camel.spring.boot.util.HierarchicalPropertiesEvaluator
-
public final class HierarchicalPropertiesEvaluator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
evaluate(org.springframework.context.ApplicationContext applicationContext, String... prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.static boolean
evaluate(org.springframework.core.env.Environment environment, String... prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.static boolean
evaluate(org.springframework.core.env.Environment environment, Collection<String> prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.
-
-
-
Method Detail
-
evaluate
public static boolean evaluate(org.springframework.context.ApplicationContext applicationContext, String... prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.- Parameters:
applicationContext
- the springApplicationContext
prefixes
- an ordered list of prefixed (less restrictive to more restrictive)- Returns:
- the value of the key `enabled` for most restrictive prefix
-
evaluate
public static boolean evaluate(org.springframework.core.env.Environment environment, String... prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.- Parameters:
environment
- the environmentprefixes
- an ordered list of prefixed (less restrictive to more restrictive)- Returns:
- the value of the key `enabled` for most restrictive prefix
-
evaluate
public static boolean evaluate(org.springframework.core.env.Environment environment, Collection<String> prefixes)
Determine the value of the "enabled" flag for a hierarchy of properties.- Parameters:
environment
- the environmentprefixes
- an ordered list of prefixed (less restrictive to more restrictive)- Returns:
- the value of the key `enabled` for most restrictive prefix
-
-