|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.app.AppConfiguration
public class AppConfiguration
| Field Summary |
|---|
| Fields inherited from interface info.aduna.app.config.Configuration |
|---|
CONFIG_DIR |
| Constructor Summary | |
|---|---|
AppConfiguration()
Create a new, uninitialized application configuration. |
|
AppConfiguration(String applicationId)
Create the application configuration. |
|
AppConfiguration(String applicationId,
AppVersion version)
Create the application configuration. |
|
AppConfiguration(String applicationId,
String longName,
AppVersion version)
Create the application configuration. |
|
| Method Summary | |
|---|---|
void |
destroy()
Clean up configuration resources. |
String |
getApplicationId()
Get the name of the application (e.g. |
String[] |
getCommandLineArgs()
Get the command line arguments of the application. |
File |
getDataDir()
|
String |
getFullName()
Get the full name of the application, which consists of the long name and the version number (e.g. |
LogConfiguration |
getLogConfiguration()
|
String |
getLongName()
Get the long name of the application (e.g. |
ProxySettings |
getProxySettings()
|
AppVersion |
getVersion()
Get the version of the application. |
void |
init()
Initialize the configuration settings. |
void |
load()
Load the configuration settings. |
void |
save()
Store configuration settings. |
void |
setApplicationId(String applicationId)
|
void |
setCommandLineArgs(String[] args)
Set the command line arguments specified to the application. |
void |
setDataDirName(String dataDirName)
|
void |
setLongName(String longName)
Set the long name of the application. |
void |
setProxySettings(ProxySettings proxySettings)
|
void |
setVersion(AppVersion version)
Set the version of the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppConfiguration()
public AppConfiguration(String applicationId)
applicationId - the ID of the application
public AppConfiguration(String applicationId,
AppVersion version)
applicationId - the ID of the applicationversion - the application's version
public AppConfiguration(String applicationId,
String longName,
AppVersion version)
applicationId - the ID of the applicationlongName - the long name of the applicationversion - the application's version| Method Detail |
|---|
public void load()
throws IOException
Configuration
load in interface ConfigurationIOException - if the configuration settings could not be loaded due to an I/O
problem.
public void save()
throws IOException
Configuration
save in interface ConfigurationIOException - if the configuration settings could not be saved due to an I/O
problem.
public void init()
throws IOException
Configuration
init in interface ConfigurationIOException - if the configuration settings could not be initialized because of
an I/O problem.
public void destroy()
throws IOException
Configuration
destroy in interface ConfigurationIOException - if one or more resources could not be cleaned up. Implementations
should attempt to clean up as many resources as possible before
returning or throwing an exception.public String getApplicationId()
public void setApplicationId(String applicationId)
public void setDataDirName(String dataDirName)
public String getLongName()
public void setLongName(String longName)
longName - the new namepublic String getFullName()
public AppVersion getVersion()
public void setVersion(AppVersion version)
version - the new versionpublic String[] getCommandLineArgs()
public void setCommandLineArgs(String[] args)
args - A String array containing the arguments as specified to the main
method.public File getDataDir()
public LogConfiguration getLogConfiguration()
public ProxySettings getProxySettings()
public void setProxySettings(ProxySettings proxySettings)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||