Class RunInDevModeCondition

java.lang.Object
dev.voidframework.core.conditionalfeature.condition.RunInDevModeCondition
All Implemented Interfaces:
Condition

public class RunInDevModeCondition extends Object implements Condition
Indicates that the feature will only be loaded if the application is run in development mode (see configuration key voidframework.core.runInDevMode").
Since:
1.7.0
  • Constructor Details

    • RunInDevModeCondition

      public RunInDevModeCondition()
  • Method Details

    • isEnabled

      public boolean isEnabled(com.typesafe.config.Config configuration, Class<?> annotatedClassType, AnnotationMetadata annotationMetadata)
      Description copied from interface: Condition
      Checks if the feature must be enabled or not.
      Specified by:
      isEnabled in interface Condition
      Parameters:
      configuration - The application configuration
      annotatedClassType - Class type of the annotated class
      annotationMetadata - Annotation metadata
      Returns:
      true if feature must be enabled, otherwise, false