| 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 |
|---|---|
ConfigurationFormat |
ConfigurationData.getFormat()
Get the
ConfigurationFormat that read this data. |
| Modifier and Type | Method and Description |
|---|---|
static List<ConfigurationFormat> |
ConfigurationFormats.getFormats()
Get all currently available formats, ordered by priority.
|
static List<ConfigurationFormat> |
ConfigurationFormats.getFormats(String... formatNames)
Get all currently available formats, ordered by priority.
|
static List<ConfigurationFormat> |
ConfigurationFormats.getFormats(URL url)
Get all currently available formats, ordered by priority.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.tamaya.spi.PropertySource |
ConfigurationFormats.createPropertySource(String resource,
InputStream inputStream,
ConfigurationFormat... formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats
in order and transforms it into a
PropertySource using a default mapping. |
static org.apache.tamaya.spi.PropertySource |
ConfigurationFormats.createPropertySource(URL url,
ConfigurationFormat... formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats
in order and transforms it into a
PropertySource using a default mapping. |
static ConfigurationDataBuilder |
ConfigurationDataBuilder.of(String resource,
ConfigurationFormat format)
Creates a new instance.
|
static Collection<ConfigurationData> |
ConfigurationFormats.readConfigurationData(Collection<URL> urls,
ConfigurationFormat... formats) |
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,
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 org.apache.tamaya.spi.PropertySource |
ConfigurationFormats.createPropertySource(String resource,
InputStream inputStream,
Collection<ConfigurationFormat> formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats
in order and transforms it into a
PropertySource using a default mapping. |
static org.apache.tamaya.spi.PropertySource |
ConfigurationFormats.createPropertySource(URL url,
Collection<ConfigurationFormat> formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats
in order and transforms it into a
PropertySource using a default mapping. |
static Collection<ConfigurationData> |
ConfigurationFormats.readConfigurationData(Collection<URL> urls,
Collection<ConfigurationFormat> formats) |
static ConfigurationData |
ConfigurationFormats.readConfigurationData(String resource,
InputStream inputStream,
Collection<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,
Collection<ConfigurationFormat> formats)
Tries to read configuration data from a given URL, hereby explicitly trying all given formats in order.
|
| Constructor and Description |
|---|
BaseFormatPropertySourceProvider(List<ConfigurationFormat> formats,
ClassLoader classLoader,
String... paths)
Creates a new instance.
|
BaseFormatPropertySourceProvider(List<ConfigurationFormat> formats,
String... paths)
Creates a new instance, hereby using the current thread context classloader, or if not available the classloader
that loaded this class.
|
BaseFormatPropertySourceProvider(List<ConfigurationFormat> formats,
URL... paths)
Creates a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IniConfigurationFormat
Implements a ini file format.
|
class |
PropertiesFormat
Implementation of a
ConfigurationFormat for -properties files. |
class |
PropertiesXmlFormat
Implementation of a
ConfigurationFormat for xml property
files. |
Copyright © 2016–2017 Apache Software Foundation. All rights reserved.