All Known Implementing Classes:
ConfigurationCondition, RunInDevModeCondition

public interface Condition
A single condition to determine if feature must be enabled or not.
Since:
1.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEnabled(com.typesafe.config.Config configuration, Class<?> annotatedClassType, AnnotationMetadata annotationMetadata)
    Checks if the feature must be enabled or not.
  • Method Details

    • isEnabled

      boolean isEnabled(com.typesafe.config.Config configuration, Class<?> annotatedClassType, AnnotationMetadata annotationMetadata)
      Checks if the feature must be enabled or not.
      Parameters:
      configuration - The application configuration
      annotatedClassType - Class type of the annotated class
      annotationMetadata - Annotation metadata
      Returns:
      true if feature must be enabled, otherwise, false
      Since:
      1.5.0