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 Collection<ConfigurationData> |
ConfigurationFormats.getPropertySources(Collection<URL> urls,
ConfigurationFormat... formats) |
static ConfigurationDataBuilder |
ConfigurationDataBuilder.of(String resource,
ConfigurationFormat format)
Creates a new instance.
|
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.
|
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 © 2014–2016 Apache Software Foundation. All rights reserved.