Interface ConfigBeanInfo

All Superinterfaces:
Annotation

public interface ConfigBeanInfo extends ConfigBean
Represents all the attributes belonging to ConfigBean available in a Builder style usage pattern.
  • Field Details

  • Method Details

    • toMetaConfigBeanInfo

      static io.helidon.builder.config.spi.MetaConfigBeanInfo toMetaConfigBeanInfo(ConfigBean val, Class<?> cfgBeanType)
      Builds meta information appropriate for config integration from a ConfigBean instance. This will use the key if ConfigBean.value() is present, and if not present will default to the simple class name of the bean type.
      Parameters:
      val - the config bean instance
      cfgBeanType - the config bean type
      Returns:
      the meta information for the config bean
    • toMetaConfigBeanInfo

      static io.helidon.builder.config.spi.MetaConfigBeanInfo toMetaConfigBeanInfo(Map<String,Object> meta)
      Builds meta information appropriate for config integration from a meta attribute map.
      Parameters:
      meta - the meta attribute map
      Returns:
      the meta information for the config bean
    • toConfigBeanName

      static String toConfigBeanName(String name)
      Converts the name (e.g., simple class name) into a config key.

      Name is camel case - such as WebServer result is dash separated and lower cased web-server.

      Unlike toConfigAttributeName(String), the behavior here is modified slightly for config bean type names in that any configuration ending in "-config" is stripped off as a general convention (e.g., "Http2Config" maps to "http2").

      Parameters:
      name - the input name
      Returns:
      the config key
    • toConfigAttributeName

      static String toConfigAttributeName(String name)
      Converts the name (e.g., method element name) into a config key.

      Name is camel case - such as someAttributeValue result is dash separated and lower cased some-attribute-value.

      Parameters:
      name - the input name
      Returns:
      the config key