|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restafarian.core.utils.SimpleVelocityService
public class SimpleVelocityService
This class is a simple wrapper for Velocity.
| Method Summary | |
|---|---|
static java.lang.String |
evaluate(java.lang.String template,
java.lang.Object sourceData)
Uses Velocity to evaluate the template using the source data for the Velocity context. |
static SimpleVelocityService |
getService()
Returns the currently active service object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String evaluate(java.lang.String template,
java.lang.Object sourceData)
Uses Velocity to evaluate the template using the source data for the Velocity context.
template - the velocity templatesourceData - the source data used for the Velocity context
public static SimpleVelocityService getService()
Returns the currently active service object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||