org.virtualmock.configuration
Class ConfigDigester

java.lang.Object
  extended byorg.virtualmock.configuration.ConfigDigester

public class ConfigDigester
extends java.lang.Object

This class uses Jakarta Commons Digester to read the VirtualMock configuration file.

Version:
$Revision: 1.9 $
Author:
Chad Woolley

Constructor Summary
ConfigDigester(java.io.InputStream inputStream)
          Creates a new ConfigDigester object, with validation enabled.
ConfigDigester(java.io.InputStream inputStream, boolean validate)
          Creates a new ConfigDigester object, with validation enabled or disabled according to specified flag.
ConfigDigester(java.io.InputStream inputStream, org.apache.commons.digester.Digester digester)
          Creates a new ConfigDigester object, with validation enabled, and using the specified Digester.
 
Method Summary
 VMConfig getVMConfig()
          Returns the VMConfig that was parsed when this ConfigDigester was constructed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigDigester

public ConfigDigester(java.io.InputStream inputStream)
Creates a new ConfigDigester object, with validation enabled.

Parameters:
inputStream - the InputStream which contains the virtualmock xml config file.

ConfigDigester

public ConfigDigester(java.io.InputStream inputStream,
                      org.apache.commons.digester.Digester digester)
Creates a new ConfigDigester object, with validation enabled, and using the specified Digester. This is to facilitate unit testing.

Parameters:
inputStream - the InputStream which contains the virtualmock xml config file.
digester - the Digester to use.

ConfigDigester

public ConfigDigester(java.io.InputStream inputStream,
                      boolean validate)
Creates a new ConfigDigester object, with validation enabled or disabled according to specified flag.

Parameters:
inputStream - the InputStream which contains the virtualmock xml config file.
validate - flag which indicates if the config xml should be validated.
Method Detail

getVMConfig

public VMConfig getVMConfig()
Returns the VMConfig that was parsed when this ConfigDigester was constructed.

Returns:
the VMConfig that was parsed when this ConfigDigester was constructed.


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.