Package | Description |
---|---|
org.apache.tamaya.format |
This package provides an abstraction for parsing a configuration
from an input strem, called
ConfigurationFormat
and corresponding helper artifacts. |
org.apache.tamaya.format.formats |
This package provides implementtion of
ConfigurationFormat
for properties, xml-properties and ini files. |
Modifier and Type | Method and Description |
---|---|
ConfigurationData |
ConfigurationDataBuilder.build()
Builds a new
ConfigurationData instance. |
ConfigurationData |
ConfigurationFormat.readConfiguration(String resource,
InputStream inputStream)
Reads a configuration from an URL, hereby parsing the given
InputStream . |
static ConfigurationData |
ConfigurationFormats.readConfigurationData(String resource,
InputStream inputStream,
ConfigurationFormat... formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats in order.
|
static ConfigurationData |
ConfigurationFormats.readConfigurationData(URL url)
Tries to read configuration data from a given URL, hereby traversing all known formats in order of precedence.
|
static ConfigurationData |
ConfigurationFormats.readConfigurationData(URL url,
ConfigurationFormat... formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats in order.
|
Modifier and Type | Method and Description |
---|---|
static Collection<ConfigurationData> |
ConfigurationFormats.getPropertySources(Collection<URL> urls,
ConfigurationFormat... formats) |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<org.apache.tamaya.spi.PropertySource> |
BaseFormatPropertySourceProvider.getPropertySources(ConfigurationData data)
Method to create a
PropertySource based on the given entries read. |
static ConfigurationDataBuilder |
ConfigurationDataBuilder.of(ConfigurationData data)
Creates a new instance.
|
protected Map<String,String> |
FlattenedDefaultPropertySource.populateData(ConfigurationData data) |
Constructor and Description |
---|
FlattenedDefaultPropertySource(ConfigurationData data) |
FlattenedDefaultPropertySource(int defaultOrdinal,
ConfigurationData data) |
Modifier and Type | Method and Description |
---|---|
ConfigurationData |
PropertiesFormat.readConfiguration(String resource,
InputStream inputStream) |
ConfigurationData |
PropertiesXmlFormat.readConfiguration(String resource,
InputStream inputStream) |
ConfigurationData |
IniConfigurationFormat.readConfiguration(String resource,
InputStream inputStream) |
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.