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 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
-
module
Module name.- Parameters:
module- module name- Returns:
- updated builder instance
- See Also:
-
name
Feature name.- Parameters:
name- feature name- Returns:
- updated builder instance
- See Also:
-
clearDescription
Clear existing value of description.- Returns:
- updated builder instance
- See Also:
-
description
Feature description.- Parameters:
description- description- Returns:
- updated builder instance
- See Also:
-
clearPath
Clear all path.- Returns:
- updated builder instance
- See Also:
-
path
Feature path.- Parameters:
path- path- Returns:
- updated builder instance
- See Also:
-
addPath
Feature path.- Parameters:
path- path- Returns:
- updated builder instance
- See Also:
-
clearSince
Clear existing value of since.- Returns:
- updated builder instance
- See Also:
-
since
First version of Helidon this feature was in.- Parameters:
since- since version- Returns:
- updated builder instance
- See Also:
-
clearFlavors
Clear all flavors.- Returns:
- updated builder instance
- See Also:
-
flavors
Which flavor(s) should print this feature.- Parameters:
flavors- flavors- Returns:
- updated builder instance
- See Also:
-
addFlavors
Which flavor(s) should print this feature.- Parameters:
flavors- flavors- Returns:
- updated builder instance
- See Also:
-
addFlavor
Which flavor(s) should print this feature.- Parameters:
flavor- add single flavors- Returns:
- updated builder instance
- See Also:
-
clearInvalidFlavors
Clear all invalidFlavors.- Returns:
- updated builder instance
- See Also:
-
invalidFlavors
In which flavor we should warn that this feature is present on classpath.- Parameters:
invalidFlavors- flavors- Returns:
- updated builder instance
- See Also:
-
addInvalidFlavors
In which flavor we should warn that this feature is present on classpath.- Parameters:
invalidFlavors- flavors- Returns:
- updated builder instance
- See Also:
-
addInvalidFlavor
In which flavor we should warn that this feature is present on classpath.- Parameters:
invalidFlavor- add single flavors- Returns:
- updated builder instance
- See Also:
-
clearAot
Clear existing value of aot.- Returns:
- updated builder instance
- See Also:
-
aot
Ahead of time compilation information (native-image).- Parameters:
aot- AOT information- Returns:
- updated builder instance
- See Also:
-
aot
Ahead of time compilation information (native-image).- Parameters:
consumer- consumer of builder of AOT information- Returns:
- updated builder instance
- See Also:
-
aot
Ahead of time compilation information (native-image).- Parameters:
supplier- supplier of AOT information- Returns:
- updated builder instance
- See Also:
-
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
Module name.- Returns:
- module name
-
name
Feature name.- Returns:
- feature name
-
description
Feature description.- Returns:
- description
-
path
Feature path.- Returns:
- path
-
since
First version of Helidon this feature was in.- Returns:
- since version
-
flavors
Which flavor(s) should print this feature.- Returns:
- flavors
-
invalidFlavors
In which flavor we should warn that this feature is present on classpath.- Returns:
- flavors
-
aot
Ahead of time compilation information (native-image).- Returns:
- AOT information
-
deprecation
Deprecation information.- Returns:
- deprecation info
-
status
Feature status.- Returns:
- status
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-