java.lang.Object
io.helidon.config.mp.MpMetaConfigUtils
Utilities for Helidon MicroProfile Meta-Config implementation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ConfigSource>
sourceFromMeta
(Config config, String profile, Function<Path, ConfigSource> fromPath, Function<String, List<ConfigSource>> fromClasspath, BiFunction<String, String, List<ConfigSource>> fromClasspathWithProfile, Function<URL, ConfigSource> fromUrl) A utility for providing a list of configuration sources.
-
Method Details
-
sourceFromMeta
public static List<ConfigSource> sourceFromMeta(Config config, String profile, Function<Path, ConfigSource> fromPath, Function<String, List<ConfigSource>> fromClasspath, BiFunction<String, String, List<ConfigSource>> fromClasspathWithProfile, Function<URL, ConfigSource> fromUrl) A utility for providing a list of configuration sources.- Parameters:
config
- configuration properties from a meta-config typeprofile
- name of the profile to use or null if not usedfromPath
- Function used to process a config specified by a filepathfromClasspath
- Function used to process a config specified by a classpathfromClasspathWithProfile
- BiFunction used to process a config specified by a classpath and a profile namefromUrl
- Function used to process a config specified by a Url- Returns:
- list of configuration sources
-