| Package | Description |
|---|---|
| net.obvj.confectory |
The main package.
|
| net.obvj.confectory.mapper |
This package groups the
Mapper interface and its implementations, as well as
auxiliary classes. |
| net.obvj.confectory.source |
This package groups the
Source interface and its implementations, as well as
auxiliary classes. |
| Modifier and Type | Method and Description |
|---|---|
Mapper<T> |
Configuration.getMapper() |
Mapper<T> |
ConfigurationBuilder.getMapper() |
Mapper<T> |
ConfigurationMetadataRetriever.getMapper()
Returns the
Mapper object associated with this Configuration. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationBuilder<T> |
ConfigurationBuilder.mapper(Mapper<T> mapper)
Defines the
Mapper of the new Configuration. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBeanMapper<T>
An abstract
Mapper for implementations intended to load the contents of an
InputStream into user-defined beans. |
class |
AbstractINIMapper<T>
An abstract
Mapper that defines a template of how to parse the contents of a
valid INI Source (e.g.: file, URL), and delegates the final object type
population to a concrete implementation. |
class |
DummyMapper<T>
A dummy
Mapper for use with a preset configuration bean and other internal
purposes. |
class |
INIToJSONObjectMapper
A specialized
Mapper that loads the contents of a valid INI Source
(e.g.: file, URL) as a JSONObject. |
class |
INIToObjectMapper<T>
A specialized
Mapper that loads the contents of a valid INI Source
(e.g.: file, URL) into a POJO (Plain-Old Java Object). |
class |
JSONObjectMapper
A specialized
Mapper that loads the contents of a valid JSON Source
(e.g.: file, URL) as a JSONObject (json-smart JSON implementation). |
class |
PropertiesMapper
A specialized
Mapper that loads the contents of a Source (e.g.: file,
URL) as Properties (a table of key-value pairs). |
class |
PropertiesToObjectMapper<T>
A specialized
Mapper that loads the contents of a Source (e.g.: file,
URL) in the Properties format (a sequence of key-value pairs) and converts it
into a POJO (Plain-Old Java Object). |
class |
StringMapper
A specialized
Mapper that loads the contents of a Source (e.g.: file,
URL) as a String using the JVM default Charset, typically for
testing/troubleshooting or manual handling purposes. |
| Modifier and Type | Method and Description |
|---|---|
T |
ClasspathFileSource.load(Mapper<T> mapper) |
T |
DummySource.load(Mapper<T> mapper) |
T |
DynamicSource.load(Mapper<T> mapper) |
T |
FileSource.load(Mapper<T> mapper) |
T |
Source.load(Mapper<T> mapper)
Applies a specific configuration loading strategy and returns a mapped bean containing
the retrieved data, throwing an exception if the operation fails.
|
T |
StringSource.load(Mapper<T> mapper) |
T |
URLSource.load(Mapper<T> mapper) |
T |
AbstractSource.load(Mapper<T> mapper,
boolean optional) |
T |
Source.load(Mapper<T> mapper,
boolean optional)
Applies a specific configuration loading strategy and returns a mapped bean containing
the retrieved data.
|
Copyright © 2022. All rights reserved.