public class RequiresCondition extends java.lang.Object implements Condition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MEMBER_BEANS |
static java.lang.String |
MEMBER_CLASSES |
static java.lang.String |
MEMBER_CONDITION |
static java.lang.String |
MEMBER_CONFIGURATION |
static java.lang.String |
MEMBER_DEFAULT_VALUE |
static java.lang.String |
MEMBER_ENTITIES |
static java.lang.String |
MEMBER_ENV |
static java.lang.String |
MEMBER_MISSING_BEANS |
static java.lang.String |
MEMBER_MISSING_CLASSES |
static java.lang.String |
MEMBER_MISSING_PROPERTY |
static java.lang.String |
MEMBER_NOT_ENV |
static java.lang.String |
MEMBER_NOT_EQUALS |
static java.lang.String |
MEMBER_NOT_OS |
static java.lang.String |
MEMBER_OS |
static java.lang.String |
MEMBER_PATTERN |
static java.lang.String |
MEMBER_PROPERTY |
static java.lang.String |
MEMBER_RESOURCES |
static java.lang.String |
MEMBER_SDK |
static java.lang.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 java.lang.String MEMBER_PROPERTY
public static final java.lang.String MEMBER_NOT_EQUALS
public static final java.lang.String MEMBER_DEFAULT_VALUE
public static final java.lang.String MEMBER_PATTERN
public static final java.lang.String MEMBER_MISSING_PROPERTY
public static final java.lang.String MEMBER_ENV
public static final java.lang.String MEMBER_NOT_ENV
public static final java.lang.String MEMBER_CONDITION
public static final java.lang.String MEMBER_SDK
public static final java.lang.String MEMBER_VERSION
public static final java.lang.String MEMBER_MISSING_CLASSES
public static final java.lang.String MEMBER_RESOURCES
public static final java.lang.String MEMBER_CONFIGURATION
public static final java.lang.String MEMBER_CLASSES
public static final java.lang.String MEMBER_ENTITIES
public static final java.lang.String MEMBER_BEANS
public static final java.lang.String MEMBER_MISSING_BEANS
public static final java.lang.String MEMBER_OS
public static final java.lang.String MEMBER_NOT_OS
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