org.codehaus.waffle.bind
Class ScriptedViewDataBinder

java.lang.Object
  extended by org.codehaus.waffle.bind.IntrospectingViewDataBinder
      extended by org.codehaus.waffle.bind.ScriptedViewDataBinder
All Implemented Interfaces:
ViewDataBinder

public abstract class ScriptedViewDataBinder
extends IntrospectingViewDataBinder

Abstract ViewDataBinder implementation for script controllers, delegating the handling of the script to concrete subclasses, specific for each script. If controller is not a scripted controller, it falls back to using the Java binder.

Author:
Michael Ward, Mauro Talevi

Constructor Summary
ScriptedViewDataBinder(BindMonitor bindMonitor)
           
 
Method Summary
 void bind(javax.servlet.http.HttpServletRequest request, java.lang.Object controller)
           
protected abstract  void handleScriptController(javax.servlet.http.HttpServletRequest request, ScriptedController controller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptedViewDataBinder

public ScriptedViewDataBinder(BindMonitor bindMonitor)
Method Detail

bind

public void bind(javax.servlet.http.HttpServletRequest request,
                 java.lang.Object controller)
Specified by:
bind in interface ViewDataBinder
Overrides:
bind in class IntrospectingViewDataBinder

handleScriptController

protected abstract void handleScriptController(javax.servlet.http.HttpServletRequest request,
                                               ScriptedController controller)


Copyright © 2008. All Rights Reserved.