Interface Configuration
-
- All Known Subinterfaces:
LogConfiguration
- All Known Implementing Classes:
AbstractLogConfiguration,AppConfiguration,LogbackConfiguration,LogConfigurationBase,ProxySettings
public interface ConfigurationApplication configuration interface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_RESOURCES_LOCATIONstatic java.lang.StringDIRstatic java.lang.StringRESOURCES_LOCATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Clean up configuration resources.voidinit()Initialize the configuration settings.voidload()Load the configuration settings.voidsave()Store configuration settings.
-
-
-
Field Detail
-
DIR
static final java.lang.String DIR
- See Also:
- Constant Field Values
-
RESOURCES_LOCATION
static final java.lang.String RESOURCES_LOCATION
- See Also:
- Constant Field Values
-
DEFAULT_RESOURCES_LOCATION
static final java.lang.String DEFAULT_RESOURCES_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init() throws java.io.IOException
Initialize the configuration settings.- Throws:
java.io.IOException- if the configuration settings could not be initialized because of an I/O problem.
-
load
void load() throws java.io.IOException
Load the configuration settings. Settings will be loaded from a user and application specific location first. If no such settings exists, an attempt will be made to retrieve settings from a resource on the classpath. If no such settings exist either, settings will be loaded from a default resource on the classpath.- Throws:
java.io.IOException- if the configuration settings could not be loaded due to an I/O problem.
-
save
void save() throws java.io.IOException
Store configuration settings. Settings will be stored in a user and application specific location.- Throws:
java.io.IOException- if the configuration settings could not be saved due to an I/O problem.
-
destroy
void destroy() throws java.io.IOExceptionClean up configuration resources.- Throws:
java.io.IOException- 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.
-
-