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
public class HoconMpMetaConfigProvider extends Object implements MpMetaConfigProvider, Prioritized
Helidon MicroProfile meta-config provider for Hocon and Json.
-
-
Field Summary
-
Fields inherited from interface io.helidon.common.Prioritized
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description HoconMpMetaConfigProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends ConfigSource>
create(String type, Config metaConfig, String profile)
Create a list of configuration sources from a meta-config type.int
priority()
Priority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).Set<String>
supportedTypes()
Set of supported types for a MicroProfile meta-config provider.
-
-
-
Method Detail
-
supportedTypes
public Set<String> supportedTypes()
Description copied from interface:MpMetaConfigProvider
Set of supported types for a MicroProfile meta-config provider.- Specified by:
supportedTypes
in interfaceMpMetaConfigProvider
- Returns:
- meta-config provider types
-
create
public List<? extends ConfigSource> create(String type, Config metaConfig, String profile)
Description copied from interface:MpMetaConfigProvider
Create a list of configuration sources from a meta-config type.- Specified by:
create
in 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:Prioritized
Priority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use thejavax.annotation.Priority
annotation rather then implementing this interface as long as it is supported by the library using thisPrioritized
.- Specified by:
priority
in interfacePrioritized
- Returns:
- the priority of this service, must be a non-negative number
-
-