@Experimental(value="Loads sources by location") public abstract class AbstractLocationConfigSourceLoader extends Object
AbstractLocationConfigSourceLoader loads ConfigSources from a list of specific
locations.
The locations comprise a list of valid URIs which are loaded in order. The following URI schemes are
supported:
If a profile is active, the profile resource is only loaded if the unprofiled resource is available in the same location. This is to keep a consistent loading order and matching with the unprofiled resource. Profiles are not taken into account if the location is a directory.
| Constructor and Description |
|---|
AbstractLocationConfigSourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
fallbackToUnknownProtocol(URI uri,
ClassLoader classLoader) |
protected abstract String[] |
getFileExtensions() |
protected org.eclipse.microprofile.config.spi.ConfigSource |
loadConfigSource(URL url) |
protected abstract org.eclipse.microprofile.config.spi.ConfigSource |
loadConfigSource(URL url,
int ordinal) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
loadConfigSources(String location) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
loadConfigSources(String[] locations) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
loadConfigSources(String[] locations,
ClassLoader classLoader) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
loadConfigSources(String location,
ClassLoader classLoader) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryClassPath(URI uri,
ClassLoader classLoader) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryFileSystem(URI uri) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryHttpResource(URI uri) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryJar(URI uri) |
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
tryProfiles(URI uri,
org.eclipse.microprofile.config.spi.ConfigSource mainSource) |
protected abstract String[] getFileExtensions()
protected abstract org.eclipse.microprofile.config.spi.ConfigSource loadConfigSource(URL url, int ordinal) throws IOException
IOExceptionprotected org.eclipse.microprofile.config.spi.ConfigSource loadConfigSource(URL url) throws IOException
IOExceptionprotected List<org.eclipse.microprofile.config.spi.ConfigSource> loadConfigSources(String location)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> loadConfigSources(String location, ClassLoader classLoader)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> loadConfigSources(String[] locations)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> loadConfigSources(String[] locations, ClassLoader classLoader)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> tryFileSystem(URI uri)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> tryClassPath(URI uri, ClassLoader classLoader)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> fallbackToUnknownProtocol(URI uri, ClassLoader classLoader)
protected List<org.eclipse.microprofile.config.spi.ConfigSource> tryHttpResource(URI uri)
Copyright © 2018–2020. All rights reserved.