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[]componentsSpecify that components of the given types must be registered for the component to be enabled.Class<? extends Condition>[]conditionsSpecify one or more conditions that the component must match.StringhavingValueSpecify the expected value for theproperty().StringmatchingSpecify the pattern that theproperty()should match.Class[]missingComponentsSpecify that components of the given types must be missing for the component to be enabled.StringmissingPropertySpecify the name of the property that should be missing.StringnotEqualsSpecify the value that theproperty()should not be equals to.StringpropertySpecify 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:
- {}
-
-