| Package | Description |
|---|---|
| net.obvj.confectory |
The main package.
|
| net.obvj.confectory.source |
This package groups the
Source interface and its implementations, as well as
auxiliary classes. |
| Modifier and Type | Method and Description |
|---|---|
Source<T> |
Configuration.getSource() |
Source<T> |
ConfigurationBuilder.getSource() |
Source<T> |
ConfigurationMetadataRetriever.getSource()
Returns the
Source object associated with this Configuration. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationBuilder<T> |
ConfigurationBuilder.source(Source<T> source)
Defines the
Source of the new Configuration. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSource<T>
An abstract configuration source, with common infrastructure.
|
class |
ClasspathFileSource<T>
A specialized configuration source implementation for loading a local file resource
from the classpath.
|
class |
DummySource<T>
A dummy
Source for internal purposes. |
class |
DynamicSource<T>
A dynamic
Source implementation which applies a different loading strategy
contingent on the path contents. |
class |
FileSource<T>
A specialized configuration source implementation for loading a local file from the
file system.
|
class |
StringSource<T>
A specialized
Source that loads the contents of a String. |
class |
URLSource<T>
A specialized configuration source implementation that loads contents from a URL, that
can be a local file or a Web resource.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Source<T> |
SourceFactory.classpathFileSource(String path)
Creates a new
ClasspathFileSource for loading a local file resource from the
Java classpath. |
static <T> Source<T> |
SourceFactory.dynamicSource(String path)
Creates a new
DynamicSource. |
static <T> Source<T> |
SourceFactory.fileSource(String path)
Creates a new
FileSource for loading a local file from the file system. |
static <T> Source<T> |
SourceFactory.stringSource(String string)
Creates a new
StringSource for loading contents of a String. |
static <T> Source<T> |
SourceFactory.urlSource(String url)
Creates a new
URLSource for loading contents of a URL. |
Copyright © 2023. All rights reserved.