Class ValidationContextConfig.Builder
java.lang.Object
io.helidon.validation.ValidationContextConfig.BuilderBase<ValidationContextConfig.Builder, ValidationContextConfig>
io.helidon.validation.ValidationContextConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ValidationContextConfig.Builder, ValidationContextConfig>, Builder<ValidationContextConfig.Builder, ValidationContext>, Supplier<ValidationContext>
- Enclosing interface:
ValidationContextConfig
public static class ValidationContextConfig.Builder
extends ValidationContextConfig.BuilderBase<ValidationContextConfig.Builder, ValidationContextConfig>
implements Builder<ValidationContextConfig.Builder, ValidationContext>
Fluent API builder for
ValidationContext.-
Nested Class Summary
Nested classes/interfaces inherited from class ValidationContextConfig.BuilderBase
ValidationContextConfig.BuilderBase.ValidationContextConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ValidationContextConfig.BuilderBase
clearRootObject, clock, clock, clockDiscoverServices, clockDiscoverServices, from, from, preBuildPrototype, rootObject, rootObject, rootType, rootType, serviceRegistry, serviceRegistry, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of rootObject.clock()Clock to use for validation of calendar constraints.Clock to use for validation of calendar constraints.booleanService discovery flag forValidationContextConfig.BuilderBase.clock().clockDiscoverServices(boolean clockDiscoverServices) Service discovery flag forValidationContextConfig.BuilderBase.clock().from(ValidationContextConfig prototype) Update this builder from an existing prototype instance.from(ValidationContextConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.Top level validation root object.rootObject(Object rootObject) Top level validation root object.rootType()Top level validation root type.Top level validation root type.Service registry used to discover providers and services.serviceRegistry(ServiceRegistry serviceRegistry) Service registry used to discover providers and services.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ValidationContextget()default ValidationContextConfig.Builderidentity()Instance of this builder as the correct type.default ValidationContextConfig.Builderupdate(Consumer<ValidationContextConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ValidationContextConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ValidationContextConfig.Builder, ValidationContextConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ValidationContextConfig.Builder, ValidationContext>- Returns:
- instance of the built type
-