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.intpriority()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:MpMetaConfigProviderSet of supported types for a MicroProfile meta-config provider.- Specified by:
supportedTypesin interfaceMpMetaConfigProvider- Returns:
- meta-config provider types
-
create
public List<? extends ConfigSource> create(String type, Config metaConfig, String profile)
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 thejavax.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
-
-