Class RenderPerformanceListener
java.lang.Object
org.apache.wicket.devutils.inspector.RenderPerformanceListener
- All Implemented Interfaces:
org.apache.wicket.application.IComponentInstantiationListener
public class RenderPerformanceListener
extends Object
implements org.apache.wicket.application.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccepts(org.apache.wicket.Component component) Filters which components' render performance should be measured.voidonInstantiation(org.apache.wicket.Component component)
-
Constructor Details
-
RenderPerformanceListener
public RenderPerformanceListener()
-
-
Method Details
-
onInstantiation
- Specified by:
onInstantiationin interfaceorg.apache.wicket.application.IComponentInstantiationListener
-
accepts
Filters which components' render performance should be measured.- Parameters:
component- the component that is instantiated- Returns:
trueif render time should be measured the for this component,false- otherwise
-