Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.infohazard.maverick.view
Class NullViewFactory  view NullViewFactory download NullViewFactory.java

java.lang.Object
  extended byorg.infohazard.maverick.view.NullViewFactory
All Implemented Interfaces:
org.infohazard.maverick.flow.ViewFactory

public class NullViewFactory
extends java.lang.Object
implements org.infohazard.maverick.flow.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.
 
Field Summary
(package private) static org.infohazard.maverick.flow.View singletonNull
           
 
Constructor Summary
NullViewFactory()
           
 
Method Summary
 org.infohazard.maverick.flow.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
 

Field Detail

singletonNull

static org.infohazard.maverick.flow.View singletonNull
Constructor Detail

NullViewFactory

public NullViewFactory()
Method Detail

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