- All Superinterfaces:
Annotation
Represents all the attributes belonging to
ConfigBean available in a
Builder style usage pattern.-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.builder.config.ConfigBean
ConfigBean.LevelType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attribute name forConfigBean.atLeastOne().static final StringThe attribute name forConfigBean.drivesActivation().static final StringThe attribute name forConfigBean.value()()}.static final StringThe attribute name forConfigBean.levelType().static final StringThe attribute name forConfigBean.repeatable().static final StringThe attribute name forConfigBean.wantDefaultConfigBean(). -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StringtoConfigAttributeName(String name) Converts the name (e.g., method element name) into a config key.static StringtoConfigBeanName(String name) Converts the name (e.g., simple class name) into a config key.static io.helidon.builder.config.spi.MetaConfigBeanInfotoMetaConfigBeanInfo(ConfigBean val, Class<?> cfgBeanType) Builds meta information appropriate for config integration from aConfigBeaninstance.static io.helidon.builder.config.spi.MetaConfigBeanInfotoMetaConfigBeanInfo(Map<String, Object> meta) Builds meta information appropriate for config integration from a meta attribute map.
-
Field Details
-
TAG_KEY
The attribute name forConfigBean.value()()}.- See Also:
-
TAG_DRIVES_ACTIVATION
The attribute name forConfigBean.drivesActivation().- See Also:
-
TAG_AT_LEAST_ONE
The attribute name forConfigBean.atLeastOne().- See Also:
-
TAG_REPEATABLE
The attribute name forConfigBean.repeatable().- See Also:
-
TAG_WANT_DEFAULT_CONFIG_BEAN
The attribute name forConfigBean.wantDefaultConfigBean().- See Also:
-
TAG_LEVEL_TYPE
The attribute name forConfigBean.levelType().- See Also:
-
-
Method Details
-
toMetaConfigBeanInfo
static io.helidon.builder.config.spi.MetaConfigBeanInfo toMetaConfigBeanInfo(ConfigBean val, Class<?> cfgBeanType) Builds meta information appropriate for config integration from aConfigBeaninstance. This will use the key ifConfigBean.value()is present, and if not present will default to the simple class name of the bean type.- Parameters:
val- the config bean instancecfgBeanType- 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
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
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
-