public class PropertiesConfigSourceProvider extends Object implements ConfigSourceProvider
Constructor and Description |
---|
PropertiesConfigSourceProvider(String propertyFileName,
boolean optional,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
List<ConfigSource> |
getConfigSources(ClassLoader forClassLoader)
Return the collection of
ConfigSource s. |
public PropertiesConfigSourceProvider(String propertyFileName, boolean optional, ClassLoader classLoader)
public List<ConfigSource> getConfigSources(ClassLoader forClassLoader)
ConfigSourceProvider
ConfigSource
s.
For each e.g. property file, we return a single ConfigSource or an empty list if no ConfigSource exists.getConfigSources
in interface ConfigSourceProvider
forClassLoader
- the classloader which should be used if any is neededConfigSources
to register within the Config
.Copyright © 2019 JBoss by Red Hat. All rights reserved.