java.lang.Object
io.helidon.common.features.metadata.FeatureRegistry

public class FeatureRegistry extends Object
Feature descriptor utilities.
  • Field Details

    • FEATURE_REGISTRY_LOCATION_V1

      public static final String FEATURE_REGISTRY_LOCATION_V1
      Location of version 1 feature metadata.
      See Also:
    • FEATURE_REGISTRY_LOCATION_V2

      public static final String FEATURE_REGISTRY_LOCATION_V2
      Location of version 2 feature registry.
      See Also:
  • Method Details

    • metadata

      public static FeatureMetadata metadata(String location, Properties properties)
      Get all feature metadata from the provided root.
      Parameters:
      location - where was this metadata obtained
      properties - feature properties (version 1)
      Returns:
      feature metadata
      Throws:
      IllegalStateException - in case the format is not as expected
    • metadata

      public static List<FeatureMetadata> metadata(String location, Hson.Array root)
      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