Package io.micronaut.context
Class RequiresCondition
java.lang.Object
io.micronaut.context.RequiresCondition
- All Implemented Interfaces:
Condition
,Predicate<ConditionContext>
- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ConditionContext context) Check whether a specific condition is met.protected boolean
matchesConfiguration
(ConditionContext context, AnnotationValue<Requires> requirements)
-
Field Details
-
MEMBER_PROPERTY
- See Also:
-
MEMBER_NOT_EQUALS
- See Also:
-
MEMBER_DEFAULT_VALUE
- See Also:
-
MEMBER_PATTERN
- See Also:
-
MEMBER_MISSING_PROPERTY
- See Also:
-
MEMBER_ENV
- See Also:
-
MEMBER_NOT_ENV
- See Also:
-
MEMBER_CONDITION
- See Also:
-
MEMBER_SDK
- See Also:
-
MEMBER_VERSION
- See Also:
-
MEMBER_MISSING_CLASSES
- See Also:
-
MEMBER_RESOURCES
- See Also:
-
MEMBER_CONFIGURATION
- See Also:
-
MEMBER_CLASSES
- See Also:
-
MEMBER_ENTITIES
- See Also:
-
MEMBER_BEANS
- See Also:
-
MEMBER_MISSING_BEANS
- See Also:
-
MEMBER_OS
- See Also:
-
MEMBER_NOT_OS
- See Also:
-
MEMBER_BEAN
- See Also:
-
MEMBER_BEAN_PROPERTY
- See Also:
-
-
Constructor Details
-
RequiresCondition
- Parameters:
annotationMetadata
- The annotation metadata
-
-
Method Details
-
matches
Description copied from interface:Condition
Check whether a specific condition is met. -
matchesConfiguration
protected boolean matchesConfiguration(ConditionContext context, AnnotationValue<Requires> requirements) - Parameters:
context
- The condition contextrequirements
- The requires- Returns:
- Whether matches the condition
-