Class FeatureMetadata.BuilderBase<BUILDER extends FeatureMetadata.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FeatureMetadata>
java.lang.Object
io.helidon.common.features.metadata.FeatureMetadata.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:
FeatureMetadata.Builder
- Enclosing interface:
FeatureMetadata
public abstract static class FeatureMetadata.BuilderBase<BUILDER extends FeatureMetadata.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FeatureMetadata>
extends Object
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
FeatureMetadata.-
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 TypeMethodDescriptionWhich flavor(s) should print this feature.addFlavors(List<? extends Flavor> flavors) Which flavor(s) should print this feature.addInvalidFlavor(Flavor invalidFlavor) In which flavor we should warn that this feature is present on classpath.addInvalidFlavors(List<? extends Flavor> invalidFlavors) In which flavor we should warn that this feature is present on classpath.Feature path.aot()Ahead of time compilation information (native-image).Ahead of time compilation information (native-image).aot(Consumer<Aot.Builder> consumer) Ahead of time compilation information (native-image).Ahead of time compilation information (native-image).clearAot()Clear existing value of aot.Clear existing value of deprecation.Clear existing value of description.Clear all flavors.Clear all invalidFlavors.Clear all path.Clear existing value of since.Deprecation information.deprecation(Deprecation deprecation) Deprecation information.deprecation(Consumer<Deprecation.Builder> consumer) Deprecation information.deprecation(Supplier<? extends Deprecation> supplier) Deprecation information.Feature description.description(String description) Feature description.flavors()Which flavor(s) should print this feature.Which flavor(s) should print this feature.from(FeatureMetadata prototype) Update this builder from an existing prototype instance.from(FeatureMetadata.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.In which flavor we should warn that this feature is present on classpath.invalidFlavors(List<? extends Flavor> invalidFlavors) In which flavor we should warn that this feature is present on classpath.module()Module name.Module name.name()Feature name.Feature name.path()Feature path.Feature path.protected voidHandles providers and decorators.since()First version of Helidon this feature was in.First version of Helidon this feature was in.status()Feature status.status(FeatureStatus status) Feature status.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
module
-
name
-
clearDescription
Clear existing value of description.- Returns:
- updated builder instance
- See Also:
-
description
-
clearPath
-
path
-
addPath
-
clearSince
Clear existing value of since.- Returns:
- updated builder instance
- See Also:
-
since
-
clearFlavors
-
flavors
-
addFlavors
-
addFlavor
-
clearInvalidFlavors
Clear all invalidFlavors.- Returns:
- updated builder instance
- See Also:
-
invalidFlavors
-
addInvalidFlavors
-
addInvalidFlavor
-
clearAot
-
aot
-
aot
Ahead of time compilation information (native-image).- Parameters:
consumer- consumer of builder of AOT information- Returns:
- updated builder instance
- See Also:
-
aot
-
clearDeprecation
Clear existing value of deprecation.- Returns:
- updated builder instance
- See Also:
-
deprecation
Deprecation information.- Parameters:
deprecation- deprecation info- Returns:
- updated builder instance
- See Also:
-
deprecation
Deprecation information.- Parameters:
consumer- consumer of builder of deprecation info- Returns:
- updated builder instance
- See Also:
-
deprecation
Deprecation information.- Parameters:
supplier- supplier of deprecation info- Returns:
- updated builder instance
- See Also:
-
status
Feature status.- Parameters:
status- status- Returns:
- updated builder instance
- See Also:
-
module
-
name
-
description
-
path
-
since
-
flavors
-
invalidFlavors
-
aot
-
deprecation
-
status
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-