Annotation Type ConditionalOnPropertyOrGroup
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@Conditional(com.broadleafcommerce.common.extension.OnPropertyOrGroupCondition.class)
public @interface ConditionalOnPropertyOrGroup
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe string representation of the expected value for the properties.boolean
Specify if the condition should match if the property is not set.A prefix that should be applied to each property.
-
Element Details
-
name
String[] nameThe 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.config
and one value ismy-value
, the full key would beapp.config.my-value
Use 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
-
group
String groupThe blanket property that covers a group of conditions. If any of the properties specified inname()
are explicitly defined in the system, the blanket property is ignored.- Returns:
- The blanket property that covers a group of conditions
-
-
-
prefix
String prefixA 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 havingValueThe string representation of the expected value for the properties. If not specified, the property must not be equal tofalse
.- Returns:
- the expected value
- Default:
- ""
-
matchIfMissing
boolean matchIfMissingSpecify if the condition should match if the property is not set. Defaults tofalse
.- Returns:
- if should match if the property is missing
- Default:
- false
-