Class HierarchicalPropertiesEvaluator

java.lang.Object
org.apache.camel.spring.boot.util.HierarchicalPropertiesEvaluator

public final class HierarchicalPropertiesEvaluator extends Object
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 spring ApplicationContext
      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 environment
      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, Collection<String> prefixes)
      Determine the value of the "enabled" flag for a hierarchy of properties.
      Parameters:
      environment - the environment
      prefixes - an ordered list of prefixed (less restrictive to more restrictive)
      Returns:
      the value of the key `enabled` for most restrictive prefix