| <?xml version="1.0"?> |
| <!-- |
| Copyright 2004, 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="workbench" version="1.0.0" package="org.apache.tapestry.workbench"> |
| |
| <contribution configuration-id="tapestry.state.ApplicationObjects" > |
| <state-object name="session-data" scope="session" > |
| <create-instance class="org.apache.tapestry.workbench.Visit" /> |
| </state-object> |
| </contribution> |
| |
| <contribution configuration-id="tapestry.services.ApplicationServices"> |
| <service name="home" object="service:Home"/> |
| <service name="chart" object="service:Chart"/> |
| </contribution> |
| |
| <contribution configuration-id="tapestry.url.ServiceEncoders"> |
| <direct-service-encoder id="direct" stateless-extension="direct" stateful-extension="sdirect"/> |
| <page-service-encoder id="page" extension="page" service="page"/> |
| <page-service-encoder id="external" extension="external" service="external"/> |
| <asset-encoder id="asset" path="/assets"/> |
| <extension-encoder id="ext" extension="svc" after="*"/> |
| </contribution> |
| |
| <service-point id="Chart" interface="org.apache.tapestry.engine.IEngineService"> |
| <invoke-factory> |
| <construct class="chart.ChartService"> |
| <set-object property="exceptionReporter" value="infrastructure:requestExceptionReporter"/> |
| <set-service property="response" service-id="tapestry.globals.HttpServletResponse"/> |
| <set-object property="linkFactory" value="infrastructure:linkFactory"/> |
| </construct> |
| </invoke-factory> |
| </service-point> |
| |
| <service-point id="Home" interface="org.apache.tapestry.engine.IEngineService"> |
| <invoke-factory> |
| <construct class="WorkbenchHomeService"> |
| <set-object property="responseRenderer" value="infrastructure:responseRenderer"/> |
| <set-object property="linkFactory" value="infrastructure:linkFactory"/> |
| <set-object property="pageName" value="app-property:org.apache.tapestry.home-page"/> |
| </construct> |
| </invoke-factory> |
| </service-point> |
| |
| </module> |