Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class OptionDeprecation.BuilderBase<BUILDER extends OptionDeprecation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionDeprecation>
java.lang.Object
io.helidon.builder.codegen.OptionDeprecation.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OptionDeprecation.Builder
- Enclosing interface:
OptionDeprecation
public abstract static class OptionDeprecation.BuilderBase<BUILDER extends OptionDeprecation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionDeprecation>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
OptionDeprecation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of the option to use instead of this one.alternative(String alternative) Name of the option to use instead of this one.Clear existing value of alternative.Clear existing value of since.booleanIf this is scheduled for removal, defaults totrue.forRemoval(boolean forRemoval) If this is scheduled for removal, defaults totrue.from(OptionDeprecation prototype) Update this builder from an existing prototype instance.from(OptionDeprecation.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.message()Deprecation message.Deprecation message.protected voidHandles providers and decorators.since()Version that deprecated this option.Version that deprecated this option.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
message
Deprecation message.- Parameters:
message- deprecation message- Returns:
- updated builder instance
- See Also:
-
forRemoval
If this is scheduled for removal, defaults totrue.- Parameters:
forRemoval- whether scheduled for removal- Returns:
- updated builder instance
- See Also:
-
clearAlternative
Clear existing value of alternative.- Returns:
- updated builder instance
- See Also:
-
alternative
Name of the option to use instead of this one.- Parameters:
alternative- alternative option name- Returns:
- updated builder instance
- See Also:
-
clearSince
Clear existing value of since.- Returns:
- updated builder instance
- See Also:
-
since
Version that deprecated this option.- Parameters:
since- since version- Returns:
- updated builder instance
- See Also:
-
message
Deprecation message.- Returns:
- deprecation message
-
forRemoval
public boolean forRemoval()If this is scheduled for removal, defaults totrue.- Returns:
- whether scheduled for removal
-
alternative
Name of the option to use instead of this one.- Returns:
- alternative option name
-
since
Version that deprecated this option.- Returns:
- since version
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-