@Retention(value=RUNTIME) @Target(value={METHOD,TYPE,FIELD}) public @interface IfBuildProperty
By default, the bean is not enabled when the build time property is not defined at all, but this behavior is configurable via the {#code enableIfMissing} property.
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
Name of the build time property to check
|
String |
stringValue
Expected
String value of the build time property (specified by name) if the bean is to be enabled |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
enableIfMissing
Determines if the bean is to be enabled when the property name specified by
name has not been specified at all |
Copyright © 2021 JBoss by Red Hat. All rights reserved.