Jwma

dtw.webmail.util.config
Class CastorXMLConfiguration

java.lang.Object
  |
  +--dtw.webmail.util.config.CastorXMLConfiguration

public class CastorXMLConfiguration
extends java.lang.Object

Class implementing a JwmaConfiguration with Castor XML based persistence.

Version:
(created Feb 24, 2003)
Author:
Dieter Wimberger (wimpi)

Constructor Summary
CastorXMLConfiguration(java.io.File configfile)
           
 
Method Summary
 JwmaConfiguration load()
          Unmarshalls a JwmaConfiguration instance from the given reader.
 void store(JwmaConfiguration config)
          Stores a JwmaConfiguration instance to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastorXMLConfiguration

public CastorXMLConfiguration(java.io.File configfile)
Method Detail

store

public void store(JwmaConfiguration config)
           throws java.lang.Exception
Stores a JwmaConfiguration instance to the given writer.

Parameters:
config - the instance to be marshalled.
Throws:
java.lang.Exception - on failure.

load

public JwmaConfiguration load()
                       throws java.lang.Exception
Unmarshalls a JwmaConfiguration instance from the given reader.

java.lang.Exception

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)