Class ConfigurationCondition
java.lang.Object
dev.voidframework.core.conditionalfeature.condition.ConfigurationCondition
- All Implemented Interfaces:
Condition
Indicates that the feature will only be loaded if the condition is met. The value
is retrieved from the configuration, properties or environment variables.
- Since:
- 1.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnabled(com.typesafe.config.Config configuration, Class<?> annotatedClassType, AnnotationMetadata annotationMetadata) Checks if the feature must be enabled or not.
-
Constructor Details
-
ConfigurationCondition
public ConfigurationCondition()
-
-
Method Details
-
isEnabled
public boolean isEnabled(com.typesafe.config.Config configuration, Class<?> annotatedClassType, AnnotationMetadata annotationMetadata) Description copied from interface:ConditionChecks if the feature must be enabled or not.
-