org.jconfig.handler
Interface ConfigurationHandler

All Known Implementing Classes:
AbstractHandler, InputStreamHandler, JDBCHandler, LDAPHandler, ScriptHandler, URLHandler, XMLFileHandler

public interface ConfigurationHandler

This interface defines all methods that must be implemented by all Handler classes.

Author:
Andreas Mecky , Terry Dye

Method Summary
 Configuration load(java.lang.String configurationName)
          This method loads a configuration and returns it
 Configuration load(java.lang.String configurationName, ConfigurationParser parser)
          This method loads a configuration using a specific parser and returns it
 void store(Configuration configuration)
          This method should store all categories and properties.
 

Method Detail

load

public Configuration load(java.lang.String configurationName)
                   throws ConfigurationManagerException
This method loads a configuration and returns it

Parameters:
configurationName - the name of the configuration
Returns:
the Configuration
Throws:
ConfigurationManagerException

load

public Configuration load(java.lang.String configurationName,
                          ConfigurationParser parser)
                   throws ConfigurationManagerException
This method loads a configuration using a specific parser and returns it

Parameters:
configurationName - the name of the configuration
parser - the parser that should be used
Returns:
the Configuration
Throws:
ConfigurationManagerException

store

public void store(Configuration configuration)
           throws ConfigurationManagerException
This method should store all categories and properties.

Parameters:
configuration - the Configuration that should be saved
Throws:
ConfigurationManagerException


Copyright © 2001-2005 Andreas Mecky, Terry Dye. All Rights Reserved.