|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationStorageSupport
Class that provides locale storage support for plugins.
Plugins use instance of this interface to access local file system to store their information - eg. premium account info.
Implementation uses XMLEncoder to store beans data into XML.
Method Summary | ||
---|---|---|
boolean |
configFileExists(String fileName)
Checks whether configuration file exists (if any configuration was created before) |
|
|
loadConfigFromFile(String fileName,
Class<E> type)
Method loads configuration data from file into Object. |
|
void |
storeConfigToFile(Object object,
String fileName)
Method store plugin's configuration data from Object into file. |
Method Detail |
---|
<E> E loadConfigFromFile(String fileName, Class<E> type) throws Exception
fileName
- file name for storing data - it's recommended to use 'plugin_id.xml'type
- class of the stored object
Exception
- throwed when reading went wrongload method
void storeConfigToFile(Object object, String fileName) throws Exception
fileName
- file name for storing data - it's recommended to use 'plugin_id.xml'
Exception
- throwed when reading went wrongsave method
boolean configFileExists(String fileName)
fileName
- file name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |