jSyncManager Simple Java Server

org.jSyncManager.SJS.Adapters.SMTPServer.Config
Class ConfigDAOXML<T,ID extends java.io.Serializable>

java.lang.Object
  extended by org.jSyncManager.SJS.Adapters.SMTPServer.Config.ConfigDAOXML<T,ID>
Type Parameters:
T - parameter value
ID - parameter value
All Implemented Interfaces:
ConfigDAO, GenericDAO<Configuration,java.lang.String>

public class ConfigDAOXML<T,ID extends java.io.Serializable>
extends java.lang.Object
implements ConfigDAO

Implementation of the ConfigDAO with an xml datastore.

Version:
$Revision$
Author:
$author$

Nested Class Summary
static class ConfigDAOXML.PlayerHandler
          Inner class which listens to SAX events to load a configuration from
 
Constructor Summary
ConfigDAOXML()
           
 
Method Summary
 Configuration loadConfig(java.lang.String configFile)
          Loads the configuration from an XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigDAOXML

public ConfigDAOXML()
Method Detail

loadConfig

public Configuration loadConfig(java.lang.String configFile)
Loads the configuration from an XML file

Specified by:
loadConfig in interface ConfigDAO
Specified by:
loadConfig in interface GenericDAO<Configuration,java.lang.String>
Parameters:
configFile - the path to the configuration file as a String
Returns:
A Configuration implementation encapsulating the details of the configuration file

jSyncManager Simple Java Server

Copyright (c) 2004 Brad BARCLAY. All Rights Reserved.