Record Class ConfigurationValidationBlock
java.lang.Object
java.lang.Record
io.micronaut.starter.feature.validation.ConfigurationValidationBlock
- Record Components:
enabled- Whether configuration validation is enabledsuppressions- Regex patterns for property keys to suppress in validation reportssuppressInjectErrors- Patterns for dependency injection errors to suppressfailOnNotPresent- Whether generation fails when expected configuration is not presentdeduceEnvironments- Whether environments should be deduced automaticallyvalidateDependencyInjection- Whether dependency injection wiring should be validatedformat- Output format, for examplejson,html, orbothoutputDirectory- Output directory where validation reports are writtendevEnvironments- Additional environments for thedevblockpackageValidationEnvironments- Additional environments for thepackageValidationblockcacheEnabled- Whether validation cache is enabledtestEnvironments- Additional environments for thetestblock
@NullMarked
@Introspected
public record ConfigurationValidationBlock(@Nullable Boolean enabled, @Nullable List<String> suppressions, @Nullable List<String> suppressInjectErrors, @Nullable Boolean failOnNotPresent, @Nullable Boolean deduceEnvironments, @Nullable Boolean validateDependencyInjection, @Nullable String format, @Nullable String outputDirectory, @Nullable List<String> devEnvironments, @Nullable List<String> packageValidationEnvironments, @Nullable Boolean cacheEnabled, @Nullable List<String> testEnvironments)
extends Record
Represents the
<configurationValidation> block used by the Micronaut Maven plugin.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationValidationBlock(@Nullable Boolean enabled, @Nullable List<String> suppressions, @Nullable List<String> suppressInjectErrors, @Nullable Boolean failOnNotPresent, @Nullable Boolean deduceEnvironments, @Nullable Boolean validateDependencyInjection, @Nullable String format, @Nullable String outputDirectory, @Nullable List<String> devEnvironments, @Nullable List<String> packageValidationEnvironments, @Nullable Boolean cacheEnabled, @Nullable List<String> testEnvironments) Creates an instance of aConfigurationValidationBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ConfigurationValidationBlock.Builderbuilder()@Nullable BooleanReturns the value of thecacheEnabledrecord component.@Nullable BooleanReturns the value of thededuceEnvironmentsrecord component.Returns the value of thedevEnvironmentsrecord component.@Nullable Booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable BooleanReturns the value of thefailOnNotPresentrecord component.@Nullable Stringformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theoutputDirectoryrecord component.Returns the value of thepackageValidationEnvironmentsrecord component.Returns the value of thesuppressInjectErrorsrecord component.Returns the value of thesuppressionsrecord component.Returns the value of thetestEnvironmentsrecord component.final StringtoString()Returns a string representation of this record class.@NonNull StringtoXml()Serializes this configuration into the XML fragment expected by the plugin.@Nullable BooleanReturns the value of thevalidateDependencyInjectionrecord component.
-
Constructor Details
-
ConfigurationValidationBlock
public ConfigurationValidationBlock(@Nullable Boolean enabled, @Nullable List<String> suppressions, @Nullable List<String> suppressInjectErrors, @Nullable Boolean failOnNotPresent, @Nullable Boolean deduceEnvironments, @Nullable Boolean validateDependencyInjection, @Nullable String format, @Nullable String outputDirectory, @Nullable List<String> devEnvironments, @Nullable List<String> packageValidationEnvironments, @Nullable Boolean cacheEnabled, @Nullable List<String> testEnvironments) Creates an instance of aConfigurationValidationBlockrecord class.- Parameters:
enabled- the value for theenabledrecord componentsuppressions- the value for thesuppressionsrecord componentsuppressInjectErrors- the value for thesuppressInjectErrorsrecord componentfailOnNotPresent- the value for thefailOnNotPresentrecord componentdeduceEnvironments- the value for thededuceEnvironmentsrecord componentvalidateDependencyInjection- the value for thevalidateDependencyInjectionrecord componentformat- the value for theformatrecord componentoutputDirectory- the value for theoutputDirectoryrecord componentdevEnvironments- the value for thedevEnvironmentsrecord componentpackageValidationEnvironments- the value for thepackageValidationEnvironmentsrecord componentcacheEnabled- the value for thecacheEnabledrecord componenttestEnvironments- the value for thetestEnvironmentsrecord component
-
-
Method Details
-
toXml
Serializes this configuration into the XML fragment expected by the plugin.- Returns:
- XML for a
<configurationValidation>element
-
builder
- Returns:
- A builder for
ConfigurationValidationBlock
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enabled
-
suppressions
Returns the value of thesuppressionsrecord component.- Returns:
- the value of the
suppressionsrecord component
-
suppressInjectErrors
Returns the value of thesuppressInjectErrorsrecord component.- Returns:
- the value of the
suppressInjectErrorsrecord component
-
failOnNotPresent
Returns the value of thefailOnNotPresentrecord component.- Returns:
- the value of the
failOnNotPresentrecord component
-
deduceEnvironments
Returns the value of thededuceEnvironmentsrecord component.- Returns:
- the value of the
deduceEnvironmentsrecord component
-
validateDependencyInjection
Returns the value of thevalidateDependencyInjectionrecord component.- Returns:
- the value of the
validateDependencyInjectionrecord component
-
format
-
outputDirectory
Returns the value of theoutputDirectoryrecord component.- Returns:
- the value of the
outputDirectoryrecord component
-
devEnvironments
Returns the value of thedevEnvironmentsrecord component.- Returns:
- the value of the
devEnvironmentsrecord component
-
packageValidationEnvironments
Returns the value of thepackageValidationEnvironmentsrecord component.- Returns:
- the value of the
packageValidationEnvironmentsrecord component
-
cacheEnabled
Returns the value of thecacheEnabledrecord component.- Returns:
- the value of the
cacheEnabledrecord component
-
testEnvironments
Returns the value of thetestEnvironmentsrecord component.- Returns:
- the value of the
testEnvironmentsrecord component
-