Class HierarchicalPropertiesEvaluator
java.lang.Object
org.apache.camel.spring.boot.util.HierarchicalPropertiesEvaluator
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determine the value of the "enabled" flag for a hierarchy of properties.static boolean
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 Details
-
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
-