org.barracudamvc.core.comp.renderer
Class RenderStrategy

java.lang.Object
  extended by org.barracudamvc.core.comp.renderer.RenderStrategy

public class RenderStrategy
extends Object

This class defines several basic render strategies. NEVER_SCRIPT indicates that we want to avoid scripting at all costs, even if the client supports it. CUSTOM_SCRIPT is exactly like NEVER_SCIPT, except that indicates to Barracuda (component renderers, mostly) not to throw exceptions in cases where the rendered markup wouldn't be able to work properly without scripting. One should use CUSTOM_SCRIPT in cases where developer-created custom client-side scripts are already in use and Barracuda shouldn't be interfering with them. SCRIPT_AS_NEEDED indicates the renderer should feel free to use scripting as desired (assuming the client supports it of course). The default render strategy, defined by DEFAULT_RENDER_STRATEGY


Field Summary
static RenderStrategy CUSTOM_SCRIPT
           
static RenderStrategy DEFAULT_RENDER_STRATEGY
           
static RenderStrategy NEVER_SCRIPT
           
static RenderStrategy SCRIPT_AS_NEEDED
           
 
Constructor Summary
protected RenderStrategy()
          Protected constructor to prevent external instantiation
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_AS_NEEDED

public static final RenderStrategy SCRIPT_AS_NEEDED

NEVER_SCRIPT

public static final RenderStrategy NEVER_SCRIPT

CUSTOM_SCRIPT

public static final RenderStrategy CUSTOM_SCRIPT

DEFAULT_RENDER_STRATEGY

public static RenderStrategy DEFAULT_RENDER_STRATEGY
Constructor Detail

RenderStrategy

protected RenderStrategy()
Protected constructor to prevent external instantiation



Copyright © 2006 BarracudaMVC.org All Rights Reserved.