To use this class simply override the method {@link WebApplication#newRequestCycle(org.apache.wicket.Request,Response)}in your {@link WebApplication}. You can only use this class in combination with the {@link JamonAwareWebRequestCycleProcessor}.
The responsibility of the {@link JamonMonitoredWebRequestCycle} is to add a monitor for all actions that will cause pages or parts of pages to be rendered.
The labels of the {@link Monitor}s come in these formats:
- "PageName" - When a user navigates directly to a Page, for instance the HomePage, or a bookmarked Page.
- "PageName.toNextPage -> NextPage" - When the component toNextPage on the PageName page causes the user to navigate to the "NextPage" page and this {@link JamonMonitoredWebRequestCycle} has its property {@link #includeSourceNameInMonitorLabel} set to
true
. - "NextPage" - When the user navigates to the "NextPage" page from whatever page he was on and this {@link JamonMonitoredWebRequestCycle} has its property {@link #includeSourceNameInMonitorLabel} set to
false
.
Any navigations from or to the {@link JamonAdminPage} is excluded from the Monitors.
@author lars