Class PropertyConditionBase

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.boolex.PropertyConditionBase
All Implemented Interfaces:
PropertyCondition, Condition, ContextAware, LifeCycle
Direct Known Subclasses:
ExpressionPropertyCondition, IsPropertyDefinedCondition, IsPropertyNullCondition, PropertyEqualityCondition

public abstract class PropertyConditionBase extends ContextAwareBase implements PropertyCondition

Abstract base class provides some scaffolding. It is intended to ease migration from legacy conditional processing in configuration files (e.g. <if>, <then>, <else>) using the Janino library. Nevertheless, it should also be useful in newly written code.

Properties are looked up in the following order:

  1. In the local property container, usually the ModelInterpretationContext
  2. in the logger context
  3. system properties
  4. environment variables
Since:
1.5.20
Author:
Ceki Gülcü
See Also: