org.apache.wicket.devutils.inspector
Class RenderPerformanceListener

java.lang.Object
  extended by org.apache.wicket.devutils.inspector.RenderPerformanceListener
All Implemented Interfaces:
IComponentInstantiationListener

public class RenderPerformanceListener
extends Object
implements IComponentInstantiationListener

A listener that adds a special Behavior that measures the time needed by a component to render itself. MarkupContainer's render includes the time for rendering its children so the time accumulates.

To enable this listener use the following in YourApplication.init():

 getComponentInstantiationListeners().add(new RenderPerformanceListener());
 


Constructor Summary
RenderPerformanceListener()
           
 
Method Summary
protected  boolean accepts(Component component)
          Filters which components' render performance should be measured.
 void onInstantiation(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderPerformanceListener

public RenderPerformanceListener()
Method Detail

onInstantiation

public void onInstantiation(Component component)
Specified by:
onInstantiation in interface IComponentInstantiationListener

accepts

protected boolean accepts(Component component)
Filters which components' render performance should be measured.

Parameters:
component - the component that is instantiated
Returns:
true if render time should be measured the for this component, false - otherwise


Copyright © 2006–2020 Apache Software Foundation. All rights reserved.