public class PropertiesConfigSourceProvider extends AbstractLocationConfigSourceLoader implements org.eclipse.microprofile.config.spi.ConfigSourceProvider
| Constructor and Description |
|---|
PropertiesConfigSourceProvider(String location,
boolean optional,
ClassLoader classLoader)
Deprecated.
|
PropertiesConfigSourceProvider(String location,
ClassLoader classLoader,
boolean includeFileSystem) |
| Modifier and Type | Method and Description |
|---|---|
static PropertiesConfigSourceProvider |
classPathResource(String location,
ClassLoader classLoader) |
static List<org.eclipse.microprofile.config.spi.ConfigSource> |
classPathSources(String location,
ClassLoader classLoader) |
List<org.eclipse.microprofile.config.spi.ConfigSource> |
getConfigSources(ClassLoader forClassLoader) |
protected String[] |
getFileExtensions()
The file extensions to filter the locations to load.
|
protected org.eclipse.microprofile.config.spi.ConfigSource |
loadConfigSource(URL url,
int ordinal)
Loads a
ConfigSource from an URL. |
static List<org.eclipse.microprofile.config.spi.ConfigSource> |
propertiesSources(String location,
ClassLoader classLoader) |
static PropertiesConfigSourceProvider |
resource(String location,
ClassLoader classLoader) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryFileSystem(URI uri,
int ordinal) |
fallbackToUnknownProtocol, loadConfigSources, loadConfigSources, loadConfigSources, loadConfigSources, tryClassPath, tryHttpResource, tryJar, tryProfilespublic PropertiesConfigSourceProvider(String location, ClassLoader classLoader, boolean includeFileSystem)
@Deprecated public PropertiesConfigSourceProvider(String location, boolean optional, ClassLoader classLoader)
public List<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ClassLoader forClassLoader)
getConfigSources in interface org.eclipse.microprofile.config.spi.ConfigSourceProviderprotected String[] getFileExtensions()
AbstractLocationConfigSourceLoadergetFileExtensions in class AbstractLocationConfigSourceLoaderprotected org.eclipse.microprofile.config.spi.ConfigSource loadConfigSource(URL url, int ordinal) throws IOException
AbstractLocationConfigSourceLoaderloadConfigSource in class AbstractLocationConfigSourceLoaderurl - the URL to load the ConfigSource.ordinal - the ordinal of the ConfigSource.ConfigSource.IOException - if an error occurred when reading from the the URL.protected List<org.eclipse.microprofile.config.spi.ConfigSource> tryFileSystem(URI uri, int ordinal)
tryFileSystem in class AbstractLocationConfigSourceLoaderpublic static PropertiesConfigSourceProvider resource(String location, ClassLoader classLoader)
public static PropertiesConfigSourceProvider classPathResource(String location, ClassLoader classLoader)
public static List<org.eclipse.microprofile.config.spi.ConfigSource> propertiesSources(String location, ClassLoader classLoader)
public static List<org.eclipse.microprofile.config.spi.ConfigSource> classPathSources(String location, ClassLoader classLoader)
Copyright © 2018–2021. All rights reserved.