de.willuhn.boot.Bootablepublic class VelocityService
extends java.lang.Object
implements de.willuhn.boot.Bootable
| Constructor | Description |
|---|---|
VelocityService() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class[] |
depends() |
|
org.apache.velocity.app.VelocityEngine |
getEngine(java.lang.String plugin) |
Liefert die Velocity-Engine fuer das angegebene Plugin.
|
void |
init(de.willuhn.boot.BootLoader loader,
de.willuhn.boot.Bootable caller) |
|
java.lang.String |
merge(java.lang.String source,
java.util.Map<java.lang.String,java.lang.Object> context) |
Interpretiert das Velocity-Template im String "source" und nimmt
alle Ersetzungen gemaess dem Context.
|
void |
shutdown() |
public java.lang.Class[] depends()
depends in interface de.willuhn.boot.BootableBootable.depends()public void init(de.willuhn.boot.BootLoader loader,
de.willuhn.boot.Bootable caller)
throws de.willuhn.boot.SkipServiceException
init in interface de.willuhn.boot.Bootablede.willuhn.boot.SkipServiceExceptionBootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)public void shutdown()
shutdown in interface de.willuhn.boot.BootableBootable.shutdown()public org.apache.velocity.app.VelocityEngine getEngine(java.lang.String plugin)
plugin - Name des Plugins oder Name der Plugin-Klasse.public java.lang.String merge(java.lang.String source,
java.util.Map<java.lang.String,java.lang.Object> context)
throws java.io.IOException
source - Der Text mit den Velocity-Platzhaltern.context - Map mit den Velocity-Parametern.java.io.IOException