org.infohazard.maverick.view
Class DispatchedViewFactory

java.lang.Object
  |
  +--org.infohazard.maverick.view.DispatchedViewFactory
All Implemented Interfaces:
ViewFactory

public class DispatchedViewFactory
extends java.lang.Object
implements ViewFactory

This factory creates Views which use the RequestDispatcher to obtain content. It is used by the DocumentViewFactory and not intended to be designated as a normal Maverick view type.


Nested Class Summary
protected static class DispatchedViewFactory.DispatchedView
          The view is rendered as a RequestDispatcher.forward() or include().
 
Constructor Summary
DispatchedViewFactory()
           
 
Method Summary
 View createView(org.jdom.Element viewNode)
          Creates a specific instance of the View from the XML element in the maverick configuration file.
 void init(org.jdom.Element factoryNode, javax.servlet.ServletConfig servletCfg)
          The factory will be initialized with the XML element from from the maverick configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchedViewFactory

public DispatchedViewFactory()
Method Detail

init

public void init(org.jdom.Element factoryNode,
                 javax.servlet.ServletConfig servletCfg)
          throws ConfigException
Description copied from interface: ViewFactory
The factory will be initialized with the XML element from from the maverick configuration file.

Specified by:
init in interface ViewFactory
ConfigException

createView

public View createView(org.jdom.Element viewNode)
                throws ConfigException
Description copied from interface: ViewFactory
Creates a specific instance of the View from the XML element in the maverick configuration file.

Specified by:
createView in interface ViewFactory
ConfigException