|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the builder typepublic interface Builder<T>
Builder interface.
| Field Summary | |
|---|---|
static String |
DEFAULT_CONFIGURATION_FILENAME
|
| Method Summary | |
|---|---|
T |
build()
Constructs this object. |
Builder<T> |
from(org.apache.commons.configuration.Configuration config)
Populates this builder from the specified Configuration. |
Builder<T> |
fromFile()
Loads credentials from "ads.properties" file in one of the following locations according to the following order: in the current directory, in the user home directory, in the classpath |
Builder<T> |
fromFile(File path)
Populates this builder from a properties file from a specified path. |
Builder<T> |
fromFile(String path)
Populates this builder from a properties file from a specified path. |
Builder<T> |
fromFile(URL path)
Populates this builder from a properties file from a specified path. |
| Field Detail |
|---|
static final String DEFAULT_CONFIGURATION_FILENAME
| Method Detail |
|---|
T build()
throws ValidationException
ValidationException - if the provided data is not valid.Builder<T> from(org.apache.commons.configuration.Configuration config)
config - Configuration to load properties from
Builder<T> fromFile()
Builder<T> fromFile(String path)
path - the path to try first as a resource, then as a file
Builder<T> fromFile(File path)
path - the path to load properties from
Builder<T> fromFile(URL path)
path - the path to try first as a resource, then as a file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||