org.infohazard.maverick.view
Class NullViewFactory

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

public class NullViewFactory
extends java.lang.Object
implements ViewFactory

Creates a view which does absolutely nothing. The Controller is assumed to have manually written all data to the response. The model is ignored.

Null views have no extra attributes and cannot have transforms.


Nested Class Summary
static class NullViewFactory.NullView
          Simple implementation does nothing.
 
Constructor Summary
NullViewFactory()
           
 
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

NullViewFactory

public NullViewFactory()
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