Module io.helidon.config.hocon.mp
Package io.helidon.config.hocon.mp
Class HoconMpMetaConfigProvider
java.lang.Object
io.helidon.config.hocon.mp.HoconMpMetaConfigProvider
- All Implemented Interfaces:
Prioritized,MpMetaConfigProvider
Helidon MicroProfile meta-config provider for Hocon and Json.
-
Field Summary
Fields inherited from interface io.helidon.config.mp.Prioritized
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate theConfigSourcefrom the given content.List<? extends ConfigSource> Create a list of configuration sources from a meta-config type.intpriority()Priority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).Set of supported types for a MicroProfile meta-config provider.
-
Constructor Details
-
HoconMpMetaConfigProvider
public HoconMpMetaConfigProvider()
-
-
Method Details
-
supportedTypes
Description copied from interface:MpMetaConfigProviderSet of supported types for a MicroProfile meta-config provider.- Specified by:
supportedTypesin interfaceMpMetaConfigProvider- Returns:
- meta-config provider types
-
create
Description copied from interface:MpMetaConfigProviderCreate a list of configuration sources from a meta-config type.- Specified by:
createin interfaceMpMetaConfigProvider- Parameters:
type- type of the config sourcemetaConfig- configuration properties of a meta-config typeprofile- name of the profile to use or null if not used- Returns:
- list of config sources
-
priority
public int priority()Description copied from interface:PrioritizedPriority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use thejakarta.annotation.Priorityannotation rather then implementing this interface as long as it is supported by the library using thisPrioritized.- Specified by:
priorityin interfacePrioritized- Returns:
- the priority of this service, must be a non-negative number
-
create
Description copied from interface:MpMetaConfigProviderCreate theConfigSourcefrom the given content.- Specified by:
createin interfaceMpMetaConfigProvider- Parameters:
content- a reader with the content data- Returns:
- config source
-