de.willuhn.jameica.services
Class VelocityService

java.lang.Object
  extended by de.willuhn.jameica.services.VelocityService
All Implemented Interfaces:
de.willuhn.boot.Bootable

public class VelocityService
extends java.lang.Object
implements de.willuhn.boot.Bootable

Resource-Loader von Velocity.


Constructor Summary
VelocityService()
           
 
Method Summary
 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)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityService

public VelocityService()
Method Detail

depends

public java.lang.Class[] depends()
Specified by:
depends in interface de.willuhn.boot.Bootable
See Also:
Bootable.depends()

init

public void init(de.willuhn.boot.BootLoader loader,
                 de.willuhn.boot.Bootable caller)
          throws de.willuhn.boot.SkipServiceException
Specified by:
init in interface de.willuhn.boot.Bootable
Throws:
de.willuhn.boot.SkipServiceException
See Also:
Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)

shutdown

public void shutdown()
Specified by:
shutdown in interface de.willuhn.boot.Bootable
See Also:
Bootable.shutdown()

getEngine

public org.apache.velocity.app.VelocityEngine getEngine(java.lang.String plugin)
Liefert die Velocity-Engine fuer das angegebene Plugin.

Parameters:
plugin - Name des Plugins oder Name der Plugin-Klasse.
Returns:
die Velocity-Engine oder die Default-Velocity-Engine von Jameica selbst wenn keine Plugin-spezifische gefunden wurde.