Class Deprecation.BuilderBase<BUILDER extends Deprecation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Deprecation>
java.lang.Object
io.helidon.common.features.metadata.Deprecation.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:
Deprecation.Builder
- Enclosing interface:
Deprecation
public abstract static class Deprecation.BuilderBase<BUILDER extends Deprecation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Deprecation>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
Deprecation
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.Clear existing value of this property.Deprecation description.description
(String description) Deprecation description.from
(Deprecation prototype) Update this builder from an existing prototype instance.from
(Deprecation.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.boolean
Whether this module is deprecated, defaults totrue
.isDeprecated
(boolean isDeprecated) Whether this module is deprecated, defaults totrue
.protected void
Handles providers and decorators.since()
First version this feature was deprecated in.First version this feature was deprecated in.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
isDeprecated
Whether this module is deprecated, defaults totrue
.- Parameters:
isDeprecated
- is deprecated- Returns:
- updated builder instance
- See Also:
-
clearSince
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
since
First version this feature was deprecated in.- Parameters:
since
- since version- Returns:
- updated builder instance
- See Also:
-
clearDescription
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
description
Deprecation description.- Parameters:
description
- description- Returns:
- updated builder instance
- See Also:
-
isDeprecated
public boolean isDeprecated()Whether this module is deprecated, defaults totrue
.- Returns:
- the is deprecated
-
since
First version this feature was deprecated in.- Returns:
- the since
-
description
Deprecation description.- Returns:
- the description
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-