Class RenderPerformanceListener
- java.lang.Object
-
- org.apache.wicket.devutils.inspector.RenderPerformanceListener
-
- All Implemented Interfaces:
IComponentInstantiationListener
public class RenderPerformanceListener extends Object implements IComponentInstantiationListener
A listener that adds a specialBehavior
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
Constructors Constructor Description RenderPerformanceListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accepts(Component component)
Filters which components' render performance should be measured.void
onInstantiation(Component component)
Called for every component that is instantiated.
-
-
-
Constructor Detail
-
RenderPerformanceListener
public RenderPerformanceListener()
-
-
Method Detail
-
onInstantiation
public void onInstantiation(Component component)
Description copied from interface:IComponentInstantiationListener
Called for every component that is instantiated. This method is called during construction, so do not depend on the construction being completed yet. The id is guaranteed to be set before this call.- Specified by:
onInstantiation
in interfaceIComponentInstantiationListener
- Parameters:
component
- the component that is being instantiated.
-
-