org.xwiki.velocity.internal.jmx
Class JMXVelocityEngine

java.lang.Object
  extended by org.xwiki.velocity.internal.jmx.JMXVelocityEngine
All Implemented Interfaces:
JMXVelocityEngineMBean

public class JMXVelocityEngine
extends java.lang.Object
implements JMXVelocityEngineMBean

Uses non-stable (ie might need to be modified when we upgrade the Velocity JAR) introspection to access private fields of Velocity. This is needed since Velocity doesn't offer a way to access information about the template namespaces and the macros within them.

Since:
2.4M2
Version:
$Id$

Constructor Summary
JMXVelocityEngine(VelocityEngine engine)
           
 
Method Summary
 javax.management.openmbean.TabularData getTemplates()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXVelocityEngine

public JMXVelocityEngine(VelocityEngine engine)
Parameters:
engine - the Velocity Engine for which to return management data
Method Detail

getTemplates

public javax.management.openmbean.TabularData getTemplates()

Specified by:
getTemplates in interface JMXVelocityEngineMBean
Returns:
the list of template namespaces along with the name of macros registered in each template namespace
See Also:
JMXVelocityEngineMBean.getTemplates()


Copyright © 2004-2011 XWiki. All Rights Reserved.