jondonym.console
Interface Configuration

All Known Implementing Classes:
JonDoConsole.LocalFileConfiguration

public interface Configuration


Method Summary
 ISqlite getDatabaseInterface()
          Optional: an sqlite database interface for caching the database entries.
 java.lang.String read()
          Returns the configuration content as String.
 void write(java.lang.String a_configurationContent)
          Writes the configuration.
 

Method Detail

read

java.lang.String read()
                      throws java.lang.Exception
Returns the configuration content as String.

Returns:
the configuration content as String or null if the configuration is empty or does not exist
Throws:
java.lang.Exception - if an error occurs while reading the configuration to a String

write

void write(java.lang.String a_configurationContent)
           throws java.lang.Exception
Writes the configuration.

Parameters:
a_configurationContent -
Throws:
java.lang.Exception

getDatabaseInterface

ISqlite getDatabaseInterface()
Optional: an sqlite database interface for caching the database entries. Leads to a faster startup. May be null.

Returns: