Class FeatureMetadata.Builder
java.lang.Object
io.helidon.common.features.metadata.FeatureMetadata.BuilderBase<FeatureMetadata.Builder, FeatureMetadata>
io.helidon.common.features.metadata.FeatureMetadata.Builder
- All Implemented Interfaces:
Prototype.Builder<FeatureMetadata.Builder, FeatureMetadata>, Builder<FeatureMetadata.Builder, FeatureMetadata>, Supplier<FeatureMetadata>
- Enclosing interface:
FeatureMetadata
public static class FeatureMetadata.Builder
extends FeatureMetadata.BuilderBase<FeatureMetadata.Builder, FeatureMetadata>
implements Builder<FeatureMetadata.Builder, FeatureMetadata>
Fluent API builder for
FeatureMetadata.-
Nested Class Summary
Nested classes/interfaces inherited from class FeatureMetadata.BuilderBase
FeatureMetadata.BuilderBase.FeatureMetadataImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class FeatureMetadata.BuilderBase
addFlavor, addFlavors, addInvalidFlavor, addInvalidFlavors, addPath, aot, aot, aot, aot, clearAot, clearDeprecation, clearDescription, clearFlavors, clearInvalidFlavors, clearPath, clearSince, deprecation, deprecation, deprecation, deprecation, description, description, flavors, flavors, from, from, invalidFlavors, invalidFlavors, module, module, name, name, path, path, preBuildPrototype, since, since, status, status, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault FeatureMetadataget()default FeatureMetadata.Builderidentity()Instance of this builder as the correct type.default FeatureMetadata.Builderupdate(Consumer<FeatureMetadata.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault FeatureMetadata.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<FeatureMetadata.Builder, FeatureMetadata>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<FeatureMetadata.Builder, FeatureMetadata>- Returns:
- instance of the built type
-