org.codehaus.waffle.testing.view
Class ViewHarness

java.lang.Object
  extended by org.codehaus.waffle.testing.view.ViewHarness

public class ViewHarness
extends java.lang.Object

Facade that enable processing of views by different template engines. The choice of engine is made based on the extension of the template resource, eg .ftl will trigger use of Freemarker processor.

Author:
Mauro Talevi

Constructor Summary
ViewHarness()
           
 
Method Summary
 java.lang.String process(java.lang.String resource, java.lang.Object controller)
           
static java.lang.String processView(java.lang.String resource, java.lang.Object controller, boolean debug)
          Static entry point to ViewHarness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewHarness

public ViewHarness()
Method Detail

process

public java.lang.String process(java.lang.String resource,
                                java.lang.Object controller)

processView

public static java.lang.String processView(java.lang.String resource,
                                           java.lang.Object controller,
                                           boolean debug)
Static entry point to ViewHarness

Parameters:
resource - the template resource path
controller - the controller instance
debug - the debug boolean flag
Returns:
The processed resource


Copyright © 2008. All Rights Reserved.