blob: a37be5efbe101fc9dafaf937db63033ee3bb0b51 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Copyright 2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<module id="tapestry.error" version="4.0.0" package="org.apache.tapestry.error">
Handling of common runtime errors.
<service-point id="ExceptionPresenter">
Handler for uncaught exceptions inside the main request
processing code path; the default implementation
displays the exception page to report the
exception.
<invoke-factory>
<construct class="ExceptionPresenterImpl">
<set-object property="exceptionPageName"
value="infrastructure:exceptionPageName"/>
<set-object property="requestExceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
</construct>
</invoke-factory>
</service-point>
<service-point id="WMLExceptionPresenter" interface="ExceptionPresenter">
Handler for uncaught exceptions inside the main request
processing code path for WML application; the default implementation
displays the exception page to report the
exception but verbose reports (to the console) the root exception as well.
<invoke-factory>
<construct class="ExceptionPresenterImpl">
<set property="verbose" value="true"/>
<set-object property="exceptionPageName"
value="infrastructure:exceptionPageName"/>
<set-object property="requestExceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
</construct>
</invoke-factory>
</service-point>
<service-point id="StaleSessionExceptionPresenter">
Handler for StaleSessionExceptions, which indicate that
the session has expired between the time a link or form
was rendered, and the time it was triggered in a new request.
<invoke-factory>
<construct class="StaleSessionExceptionPresenterImpl">
<set-object property="pageName"
value="infrastructure:staleSessionPageName"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
</construct>
</invoke-factory>
</service-point>
<service-point id="StaleLinkExceptionPresenter">
Handler for StaleSessionExceptions, which indicate that
the session has expired between the time a link or form
was rendered, and the time it was triggered in a new request.
<invoke-factory>
<construct class="StaleLinkExceptionPresenterImpl">
<set-object property="pageName"
value="infrastructure:staleLinkPageName"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
</construct>
</invoke-factory>
</service-point>
<service-point id="RequestExceptionReporter" interface="RequestExceptionReporter">
Reports request errors to the console (when reporting using the Exception page fails, or is
inappropriate).
<invoke-factory>
<construct class="RequestExceptionReporterImpl">
<set-object property="request" value="infrastructure:request"/>
</construct>
</invoke-factory>
</service-point>
<contribution configuration-id="tapestry.Infrastructure">
<property name="exceptionPageName" value="Exception"/>
<property name="exceptionPageName" mode="wml" value="WMLException"/>
<property name="staleSessionPageName" value="StaleSession"/>
<property name="staleSessionPageName" mode="wml" value="WMLStaleSession"/>
<property name="staleLinkPageName" value="StaleLink"/>
<property name="staleLinkPageName" mode="wml" value="WMLStaleLink"/>
<property name="requestExceptionReporter" object="service:RequestExceptionReporter"/>
<property name="exceptionPresenter" object="service:ExceptionPresenter"/>
<property name="exceptionPresenter" mode="wml" object="service:WMLExceptionPresenter"/>
<property name="staleSessionExceptionPresenter" object="service:StaleSessionExceptionPresenter"/>
<property name="staleLinkExceptionPresenter" object="service:StaleLinkExceptionPresenter"/>
</contribution>
</module>