|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.vity.freerapid.plugimpl.StandardStorageSupportImpl
public class StandardStorageSupportImpl
Standard implementation for
Constructor Summary | |
---|---|
StandardStorageSupportImpl(org.jdesktop.application.ApplicationContext context)
Constructor |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardStorageSupportImpl(org.jdesktop.application.ApplicationContext context)
context
- application contextMethod Detail |
---|
public boolean configFileExists(String fileName)
ConfigurationStorageSupport
configFileExists
in interface ConfigurationStorageSupport
fileName
- file name
public <E> E loadConfigFromFile(String fileName, Class<E> type) throws Exception
ConfigurationStorageSupport
loadConfigFromFile
in interface ConfigurationStorageSupport
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
public void storeConfigToFile(Object object, String fileName) throws Exception
ConfigurationStorageSupport
storeConfigToFile
in interface ConfigurationStorageSupport
fileName
- file name for storing data - it's recommended to use 'plugin_id.xml'
Exception
- throwed when reading went wrongsave method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |