|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.infohazard.maverick.view.TrivialViewFactory
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:
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.
| Nested Class Summary | |
protected static class |
TrivialViewFactory.TrivialView
|
| Constructor Summary | |
TrivialViewFactory()
|
|
| 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 |
public TrivialViewFactory()
| Method Detail |
public void init(org.jdom.Element factoryNode,
javax.servlet.ServletConfig servletCfg)
throws ConfigException
ViewFactory
init in interface ViewFactoryConfigException
public View createView(org.jdom.Element viewNode)
throws ConfigException
ViewFactory
createView in interface ViewFactoryConfigException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||