org.enhydra.xml.xmlc.deferredparsing
Interface DocumentLoader
- All Known Subinterfaces:
- ServletDocumentLoader
- All Known Implementing Classes:
- DocumentLoaderImpl
- public interface DocumentLoader
Interface for creating a DOM by document name. This interface is
used by XMLC generated classes with deferred parsing support to
delegate the actual work of DOM generation. Note: Document loaders
may be shared between different XMLC classes and accessed
concurrently. Classes implementing this interface must be thread
safe (reentrant preferred).
init
public void init(XMLCDeferredParsingFactory factory)
- Bind to a factory. This is done so that loggers, etc
can be grabbed from the factory.
- Parameters:
factory
- Factory that is creating the object. Useful
for getting logging object.
getDocument
public Document getDocument(Class docClass)
throws XMLCRuntimeException
- Get a DOM instance representing the specified document.
- Parameters:
docClass
- the XMLC generated class to get the DOM for.- Returns:
- the DOM representing objects of
docClass
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.