org.barracudamvc.contrib.sam.xmlform
Class XmlFormFactory

java.lang.Object
  extended byorg.barracudamvc.contrib.sam.xmlform.XmlFormFactory

public class XmlFormFactory
extends Object

XmlFormFactory holds a map of parsed forms. This way, the number of xml parsings is reduced as much as possible


Field Summary
protected static org.apache.log4j.Logger logger
           
protected static Map parsedXmlFiles
          Map holding all already parsed XMLForms
 
Constructor Summary
protected XmlFormFactory()
          Hidden constructor to prevent any instantiazion
 
Method Summary
static Form get(ControlEventContext context, String filename)
          If the requested Form is already stored in parsedXmlFilesit is simply returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

parsedXmlFiles

protected static Map parsedXmlFiles
Map holding all already parsed XMLForms

Constructor Detail

XmlFormFactory

protected XmlFormFactory()
Hidden constructor to prevent any instantiazion

Method Detail

get

public static Form get(ControlEventContext context,
                       String filename)
If the requested Form is already stored in parsedXmlFilesit is simply returned. Otherwise the XML file is stored in parsed form. Parsing is done by Zeus generated classes.



Copyright © 2004 BarracudaMVC.org All Rights Reserved.