T
- the builder typepublic interface Builder<T>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONFIGURATION_FILENAME
The default configuration filename used when
fromFile() is called. |
Modifier and Type | Method and Description |
---|---|
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 the "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.
|
static final String DEFAULT_CONFIGURATION_FILENAME
fromFile()
is called.T build() throws ValidationException
ValidationException
- if the provided data is not valid.Builder<T> from(org.apache.commons.configuration.Configuration config) throws com.google.api.ads.common.lib.conf.ConfigurationLoadException
config
- Configuration
to load properties fromcom.google.api.ads.common.lib.conf.ConfigurationLoadException
- if the configuration could not be
loaded.Builder<T> fromFile() throws com.google.api.ads.common.lib.conf.ConfigurationLoadException
com.google.api.ads.common.lib.conf.ConfigurationLoadException
- if the configuration could not be
loaded.Builder<T> fromFile(String path) throws com.google.api.ads.common.lib.conf.ConfigurationLoadException
path
- the path to try first as a resource, then as a filecom.google.api.ads.common.lib.conf.ConfigurationLoadException
- if the configuration could not be
loaded.Builder<T> fromFile(File path) throws com.google.api.ads.common.lib.conf.ConfigurationLoadException
path
- the path to load properties fromcom.google.api.ads.common.lib.conf.ConfigurationLoadException
- if the configuration could not be
loaded.Builder<T> fromFile(URL path) throws com.google.api.ads.common.lib.conf.ConfigurationLoadException
path
- the path to try first as a resource, then as a filecom.google.api.ads.common.lib.conf.ConfigurationLoadException
- if the configuration could not be
loaded.Copyright © 2018. All Rights Reserved.