Package org.apache.juneau.commons.inject
Annotation Interface ConditionalOnProperty
@Documented
@Target({TYPE,METHOD,FIELD})
@Retention(RUNTIME)
@Repeatable(ConditionalOnProperties.class)
public @interface ConditionalOnProperty
Condition that checks a setting value.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionRequired property value.booleanWhether to match when the property is missing.
-
Element Details
-
name
The property name to look up.- Returns:
- The property name.
-
-
-
havingValue
Required property value.When blank, any present value matches.
- Returns:
- The required value.
- Default:
- ""
-
matchIfMissing
boolean matchIfMissingWhether to match when the property is missing.- Returns:
true to match missing properties.
- Default:
- false
-