org.vraptor.config
Class XMLConfigurationLoader

java.lang.Object
  extended by org.vraptor.config.XMLConfigurationLoader

public class XMLConfigurationLoader
extends Object

Reads the xml configuration file.

Author:
Guilherme Silveira

Constructor Summary
XMLConfigurationLoader()
          Constructs an xstream reader.
 
Method Summary
 VRaptorConfiguration read(Reader reader)
          Reads vraptor configuration.
 void write(OutputStream stream, List<ConfigItem> items)
          Writes all items in a config output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigurationLoader

public XMLConfigurationLoader()
Constructs an xstream reader.

Method Detail

write

public void write(OutputStream stream,
                  List<ConfigItem> items)
           throws IOException
Writes all items in a config output.

Parameters:
stream - stream output
items - items
Throws:
IOException - output exception

read

public VRaptorConfiguration read(Reader reader)
Reads vraptor configuration.

Parameters:
xml - its xml code
Returns:
the vraptor configuration
Since:
2.3.2


Copyright © 2004-2008 VRaptor. All Rights Reserved.