Class ConditionalFeatureVerifier

java.lang.Object
dev.voidframework.core.conditionalfeature.ConditionalFeatureVerifier

public final class ConditionalFeatureVerifier extends Object
Checks whether a feature should be activated or not. Any class that does not have the appropriate annotations will be considered active.
See Also:
  • Constructor Details

    • ConditionalFeatureVerifier

      public ConditionalFeatureVerifier(com.typesafe.config.Config configuration)
      Build a new instance.
      Parameters:
      configuration - The application configuration
  • Method Details

    • isFeatureDisabled

      public boolean isFeatureDisabled(Class<?> classType)
      Checks if the feature is disabled.
      Returns:
      true if the feature is disabled, otherwise, false