Annotation Type ConditionalOn
-
@Documented @Inherited @Target({TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(Conditionals.class) public @interface ConditionalOn
This annotation can be used to indicate the condition(s) that need to be fulfilled for a component to be eligible for use in the application.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class[]
components
Specify that components of the given types must be registered for the component to be enabled.Class<? extends Condition>[]
conditions
Specify one or more conditions that the component must match.String
havingValue
Specify the expected value for theproperty()
.String
matching
Specify the pattern that theproperty()
should match.Class[]
missingComponents
Specify that components of the given types must be missing for the component to be enabled.String
missingProperty
Specify the name of the property that should be missing.String
notEquals
Specify the value that theproperty()
should not be equals to.String
property
Specify the name of the property that should be set.
-
-
-
Element Detail
-
property
String property
Specify the name of the property that should be set.- Default:
- ""
-
-
-
missingProperty
String missingProperty
Specify the name of the property that should be missing.- Default:
- ""
-
-
-
havingValue
String havingValue
Specify the expected value for theproperty()
.- Default:
- ""
-
-
-
notEquals
String notEquals
Specify the value that theproperty()
should not be equals to.- Default:
- ""
-
-
-
matching
String matching
Specify the pattern that theproperty()
should match.- Default:
- ""
-
-
-
components
Class[] components
Specify that components of the given types must be registered for the component to be enabled.- Default:
- {}
-
-
-
missingComponents
Class[] missingComponents
Specify that components of the given types must be missing for the component to be enabled.- Default:
- {}
-
-