org.ajax4jsf.builder.component.methods
Class VelocityMethodBody

java.lang.Object
  extended by org.ajax4jsf.builder.model.MethodBody
      extended by org.ajax4jsf.builder.component.methods.VelocityMethodBody
Direct Known Subclasses:
ELPropertyAccessorMethodBody

public abstract class VelocityMethodBody
extends MethodBody

Render method body by using Velocity

Author:
Maksim Kaszynski

Constructor Summary
VelocityMethodBody(JSFGeneratorConfiguration configuration)
           
 
Method Summary
protected  org.apache.velocity.VelocityContext getContext()
           
abstract  java.lang.String getTemplate()
           
protected  org.apache.velocity.Template loadTemplate(java.lang.String id, JSFGeneratorConfiguration configuration)
           
 java.lang.String toCode()
           
 
Methods inherited from class org.ajax4jsf.builder.model.MethodBody
addType, getMethod, getUsedClasses, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityMethodBody

public VelocityMethodBody(JSFGeneratorConfiguration configuration)
                   throws GeneratorException
Throws:
GeneratorException
Method Detail

getTemplate

public abstract java.lang.String getTemplate()

loadTemplate

protected org.apache.velocity.Template loadTemplate(java.lang.String id,
                                                    JSFGeneratorConfiguration configuration)
                                             throws GeneratorException
Throws:
GeneratorException

getContext

protected org.apache.velocity.VelocityContext getContext()

toCode

public java.lang.String toCode()
Overrides:
toCode in class MethodBody


Copyright © 2009. All Rights Reserved.