org.enhydra.xml.xmlc.servlet
Interface ServletDocumentLoader

All Superinterfaces:
DocumentLoader

public interface ServletDocumentLoader
extends DocumentLoader

An extended interface for document loaders.

This interface can be used to get a hook onto servlet specific context information within a document loader.


Method Summary
 void setServletContext(javax.servlet.ServletContext context)
          Set the servlet context for this instance.
 
Methods inherited from interface org.enhydra.xml.xmlc.deferredparsing.DocumentLoader
getDocument, init
 

Method Detail

setServletContext

public void setServletContext(javax.servlet.ServletContext context)
Set the servlet context for this instance. If this document loader is instatiated from the servlet aware XMLCContext, this method is called exactly once for every instance, before any of the other methods are called. However, a class implenting this interface should be prepared to run unitialized or at least fail gracefully, because non servlet aware environments will probably not initialize the servlet context.
Parameters:
context - the servlet context that this recompilation handler is assigned to.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.