Interface FeatureMetadata
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
FeatureMetadata.BuilderBase.FeatureMetadataImpl
Metadata of a feature, as stored in one of the Helidon specific files
FeatureRegistry.FEATURE_REGISTRY_LOCATION_V1
or
FeatureRegistry.FEATURE_REGISTRY_LOCATION_V2
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forFeatureMetadata
.static class
FeatureMetadata.BuilderBase<BUILDER extends FeatureMetadata.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends FeatureMetadata> Fluent API builder base forFeatureMetadata
. -
Method Summary
Modifier and TypeMethodDescriptionaot()
Ahead of time compilation information (native-image).static FeatureMetadata.Builder
builder()
Create a new fluent API builder to customize configuration.static FeatureMetadata.Builder
builder
(FeatureMetadata instance) Create a new fluent API builder from an existing instance.static FeatureMetadata
create()
Create a new instance with default values.Deprecation information.Feature description.flavors()
Which flavor(s) should print this feature.In which flavor we should warn that this feature is present on classpath.module()
Module name.name()
Feature name.path()
Feature path.since()
First version of Helidon this feature was in.status()
Feature status.default String
String representation of thepath()
, using forward slash as a separator.default Hson.Struct
toHson()
Create the metadata in Helidon metadata format.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
module
String module()Module name.- Returns:
- module name
-
name
String 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
Optional<Deprecation> deprecation()Deprecation information.- Returns:
- deprecation info
-
status
FeatureStatus status()Feature status.- Returns:
- status
-
toHson
Create the metadata in Helidon metadata format. This is used by components that store the metadata.- Returns:
- HSON object (simplified JSON)
-
stringPath
String representation of thepath()
, using forward slash as a separator.- Returns:
- string path representation
-