Package io.quarkus.arc.properties
Annotation Interface UnlessBuildProperty
@Repeatable(List.class)
@Retention(RUNTIME)
@Target({METHOD,TYPE,FIELD})
public @interface UnlessBuildProperty
When applied to a bean class or producer method (or field), the bean will only be enabled
if the Quarkus build time property does not match the provided value.
By default, the bean is not enabled when the build time property is not defined at all, but this behavior is configurable
via the enableIfMissing
property.
This annotation is repeatable. A bean will only be enabled if all the conditions defined by the
UnlessBuildProperty
annotations are satisfied.
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionName of the build time property to checkThe bean is enabled if the build time property (specified byname
) does not match this value. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if the bean is enabled when the property name specified byname
has not been specified at all
-
Element Details
-
-
enableIfMissing
boolean enableIfMissingDetermines if the bean is enabled when the property name specified byname
has not been specified at all- Default:
- false
-