public class RequiresCondition extends Object implements Condition
Modifier and Type | Field and Description |
---|---|
static String |
MEMBER_BEANS |
static String |
MEMBER_CLASSES |
static String |
MEMBER_CONDITION |
static String |
MEMBER_CONFIGURATION |
static String |
MEMBER_DEFAULT_VALUE |
static String |
MEMBER_ENTITIES |
static String |
MEMBER_ENV |
static String |
MEMBER_MISSING_BEANS |
static String |
MEMBER_MISSING_CLASSES |
static String |
MEMBER_MISSING_PROPERTY |
static String |
MEMBER_NOT_ENV |
static String |
MEMBER_NOT_EQUALS |
static String |
MEMBER_PATTERN |
static String |
MEMBER_PROPERTY |
static String |
MEMBER_RESOURCES |
static String |
MEMBER_SDK |
static String |
MEMBER_VERSION |
Constructor and Description |
---|
RequiresCondition(AnnotationMetadata annotationMetadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(ConditionContext context)
Check whether a specific condition is met.
|
protected boolean |
matchesConfiguration(ConditionContext context,
AnnotationValue<Requires> requirements) |
public static final String MEMBER_PROPERTY
public static final String MEMBER_NOT_EQUALS
public static final String MEMBER_DEFAULT_VALUE
public static final String MEMBER_PATTERN
public static final String MEMBER_MISSING_PROPERTY
public static final String MEMBER_ENV
public static final String MEMBER_NOT_ENV
public static final String MEMBER_CONDITION
public static final String MEMBER_SDK
public static final String MEMBER_VERSION
public static final String MEMBER_MISSING_CLASSES
public static final String MEMBER_RESOURCES
public static final String MEMBER_CONFIGURATION
public static final String MEMBER_CLASSES
public static final String MEMBER_ENTITIES
public static final String MEMBER_BEANS
public static final String MEMBER_MISSING_BEANS
public RequiresCondition(AnnotationMetadata annotationMetadata)
annotationMetadata
- The annotation metadatapublic boolean matches(ConditionContext context)
Condition
protected boolean matchesConfiguration(ConditionContext context, AnnotationValue<Requires> requirements)
context
- The condition contextrequirements
- The requires