java.lang.Object
org.infohazard.maverick.view.TrivialViewFactory
- All Implemented Interfaces:
- org.infohazard.maverick.flow.ViewFactory
- public class TrivialViewFactory
- extends java.lang.Object
- implements org.infohazard.maverick.flow.ViewFactory
Creates simple views which expect the model itself to be the
source of content. Controllers which use a trivial view should
provide a model which is one of:
- java.lang.String
- java.io.Reader
- javax.xml.transform.Source
- org.w3c.dom.Node
The model will be rendered to the output stream (or transform) unmolested.
Trivial views can have transforms. Neither the view elements nor
the factory elements have any additional parameters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrivialViewFactory
public TrivialViewFactory()
init
public void init(org.jdom.Element factoryNode,
javax.servlet.ServletConfig servletCfg)
throws org.infohazard.maverick.flow.ConfigException
- Description copied from interface:
org.infohazard.maverick.flow.ViewFactory
- The factory will be initialized with the XML element from from the
maverick configuration file.
- Specified by:
init in interface org.infohazard.maverick.flow.ViewFactory
createView
public org.infohazard.maverick.flow.View createView(org.jdom.Element viewNode)
throws org.infohazard.maverick.flow.ConfigException
- Description copied from interface:
org.infohazard.maverick.flow.ViewFactory
- Creates a specific instance of the View from the XML element
in the maverick configuration file.
- Specified by:
createView in interface org.infohazard.maverick.flow.ViewFactory