|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.util.dom.XMLCStdDOMFactory
public class XMLCStdDOMFactory
XMLC standard implementation of a DOMFactory. This class will load a DOM using XMLCStdFactory.
Field Summary | |
---|---|
protected boolean |
initialized
used for flagging whether the xmlcFactory has been initialized and avoiding unnecessary synchronization. |
protected static org.apache.log4j.Logger |
logger
used for logging |
protected Object |
sync
arbitrary object used to synchronize upon |
protected org.enhydra.xml.xmlc.XMLCStdFactory |
xmlcFactory
XMLCFactory instance, stored so that it isn't re-created on every request. |
Constructor Summary | |
---|---|
XMLCStdDOMFactory()
|
Method Summary | |
---|---|
Document |
getInstance(Class clazz)
Get a new instance of the DOM that is associated with the given class. |
Document |
getInstance(String docPath)
This method is not supported by this dom factory and will immediately throw an IOException if called! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
protected final Object sync
protected boolean initialized
protected org.enhydra.xml.xmlc.XMLCStdFactory xmlcFactory
Constructor Detail |
---|
public XMLCStdDOMFactory()
Method Detail |
---|
public Document getInstance(Class clazz) throws IOException
getInstance
in interface DOMFactory
clazz
- the class to be loaded as a DOM object. In this case, this class
should implement XMLObject or the underlying XMLCFactory will
not be able to instantiate it.
IOException
public Document getInstance(String docPath) throws IOException
getInstance
in interface DOMFactory
docPath
- the path to the document to be loaded as a Document object
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |