Annotation Type ConditionalOnPropertyOrGroup
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(com.broadleafcommerce.common.extension.OnPropertyOrGroupCondition.class) public @interface ConditionalOnPropertyOrGroup
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringhavingValueThe string representation of the expected value for the properties.booleanmatchIfMissingSpecify if the condition should match if the property is not set.StringprefixA prefix that should be applied to each property.
-
-
-
Element Detail
-
name
String[] name
The name of the properties to test. If a prefix has been defined, it is applied to compute the full key of each property. For instance if the prefix isapp.configand one value ismy-value, the full key would beapp.config.my-valueUse the dashed notation to specify each property, that is all lower case with a "-" to separate words (e.g.
my-long-property).- Returns:
- the names
-
-
-
prefix
String prefix
A prefix that should be applied to each property. The prefix automatically ends with a dot if not specified. A valid prefix is defined by one or more words separated with dots (e.g."acme.system.feature").- Returns:
- the prefix
- Default:
- ""
-
-
-
havingValue
String havingValue
The string representation of the expected value for the properties. If not specified, the property must not be equal tofalse.- Returns:
- the expected value
- Default:
- ""
-
-