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 class
Generated 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).clearAot()
Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Deprecation information.deprecation
(Deprecation deprecation) Deprecation information.deprecation
(Consumer<Deprecation.Builder> consumer) 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 void
Handles 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 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
-
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 this property.- Returns:
- updated builder instance
- See Also:
-
description
Feature description.- Parameters:
description
- description- 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 this property.- 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:
-
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
- flavors- 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
- flavors- Returns:
- updated builder instance
- See Also:
-
clearAot
Clear existing value of this property.- 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
- AOT information- Returns:
- updated builder instance
- See Also:
-
clearDeprecation
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
deprecation
Deprecation information.- Parameters:
deprecation
- deprecation info- Returns:
- updated builder instance
- See Also:
-
deprecation
Deprecation information.- Parameters:
consumer
- deprecation info- Returns:
- updated builder instance
- See Also:
-
status
Feature status.- Parameters:
status
- status- Returns:
- updated builder instance
- See Also:
-
module
Module name.- Returns:
- the module
-
name
Feature name.- Returns:
- the name
-
description
Feature description.- Returns:
- the description
-
path
Feature path.- Returns:
- the path
-
since
First version of Helidon this feature was in.- Returns:
- the since
-
flavors
Which flavor(s) should print this feature.- Returns:
- the flavors
-
invalidFlavors
In which flavor we should warn that this feature is present on classpath.- Returns:
- the invalid flavors
-
aot
Ahead of time compilation information (native-image).- Returns:
- the aot
-
deprecation
Deprecation information.- Returns:
- the deprecation
-
status
Feature status.- Returns:
- the status
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-