org.ocltf.common
Class XmlObjectFactory

java.lang.Object
  extended byorg.ocltf.common.XmlObjectFactory

public class XmlObjectFactory
extends java.lang.Object

Creates and returns Objects based on the a set of Apache Digester rules.

Author:
Chad Brandon

Constructor Summary
XmlObjectFactory()
           
 
Method Summary
static java.lang.Object getInstance(java.lang.Class objectClass, java.net.URL objectXml)
          Returns a new instance of the object specified in the rulesXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlObjectFactory

public XmlObjectFactory()
Method Detail

getInstance

public static java.lang.Object getInstance(java.lang.Class objectClass,
                                           java.net.URL objectXml)
Returns a new instance of the object specified in the rulesXml

Parameters:
objectClass - - the class for the object we are instantiating (the expected rules will be passed on this objectClass name)
objectXml - - the digester XML that configures the object.
Returns:


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.