Class FeatureRegistry
java.lang.Object
io.helidon.common.features.metadata.FeatureRegistry
Feature descriptor utilities.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<FeatureMetadata> metadata
(String location, Hson.Array root) Get all feature metadata from the provided root.static FeatureMetadata
metadata
(String location, Properties properties) Get all feature metadata from the provided root.
-
Field Details
-
FEATURE_REGISTRY_LOCATION_V1
Location of version 1 feature metadata.- See Also:
-
FEATURE_REGISTRY_LOCATION_V2
Location of version 2 feature registry.- See Also:
-
-
Method Details
-
metadata
Get all feature metadata from the provided root.- Parameters:
location
- where was this metadata obtainedproperties
- feature properties (version 1)- Returns:
- feature metadata
- Throws:
IllegalStateException
- in case the format is not as expected
-
metadata
Get all feature metadata from the provided root.- Parameters:
location
- where was this array obtained (such as "Classpath URL: ...")root
- array of feature metadata- Returns:
- a list of feature metadata
- Throws:
IllegalStateException
- in case the format is not as expected
-