Record Class ConfigurationValidationContext
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.configuration.validator.ConfigurationValidationContext
- Record Components:
environment- The Micronaut environment being validatedprefix- The prefix being validated. For@EachProperty, this is the fully-qualified entry prefix (for exampletest.executors.alpha).schema- The root configuration schemaproperty- The schema property representing the node being validated (typically the root property for configuration properties schemas, or the entry schema for@EachProperty)instanceMap- The nested instance map computed from the environment for the given prefix
public record ConfigurationValidationContext(io.micronaut.context.env.Environment environment, String prefix, ConfigurationSchema schema, ConfigurationSchemaProperty property, Map<String,Object> instanceMap)
extends Record
Context object passed to
ConfigurationRule implementations.-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationValidationContext(io.micronaut.context.env.Environment environment, String prefix, ConfigurationSchema schema, ConfigurationSchemaProperty property, Map<String, Object> instanceMap) Creates an instance of aConfigurationValidationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.context.env.EnvironmentReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceMaprecord component.prefix()Returns the value of theprefixrecord component.property()Returns the value of thepropertyrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigurationValidationContext
public ConfigurationValidationContext(io.micronaut.context.env.Environment environment, String prefix, ConfigurationSchema schema, ConfigurationSchemaProperty property, Map<String, Object> instanceMap) Creates an instance of aConfigurationValidationContextrecord class.- Parameters:
environment- the value for theenvironmentrecord componentprefix- the value for theprefixrecord componentschema- the value for theschemarecord componentproperty- the value for thepropertyrecord componentinstanceMap- the value for theinstanceMaprecord component
-
-
Method Details
-
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). -
environment
public io.micronaut.context.env.Environment environment()Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
prefix
-
schema
-
property
-
instanceMap
Returns the value of theinstanceMaprecord component.- Returns:
- the value of the
instanceMaprecord component
-