Interface Condition
- 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 TypeMethodDescriptionbooleanisEnabled(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 configurationannotatedClassType- Class type of the annotated classannotationMetadata- Annotation metadata- Returns:
trueif feature must be enabled, otherwise,false- Since:
- 1.5.0
-