blob: 5431a2bfa2ec8c755cb8d8c4fc62a7c43af2fa92 [file] [log] [blame]
<?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="tapestry.init" version="4.0.0" package="org.apache.tapestry.services">
Contains all the application initialization logic.
<service-point id="MasterInitializer" interface="ApplicationInitializer">
Master startup for the application; invokes an ordered series of other ApplicationInitializer instances contributed to
the ApplicationInitializers configuration point.
<invoke-factory service-id="hivemind.lib.ChainFactory">
<construct configuration-id="ApplicationInitializers"/>
</invoke-factory>
</service-point>
<configuration-point id="ApplicationInitializers" schema-id="hivemind.lib.ChainContribution">
An orderable list of ApplicationInitializer services.
</configuration-point>
<service-point id="ApplicationSpecificationInitializer" interface="ApplicationInitializer">
Locates and parses the application specification and informs the ApplicationGlobals service about it.
<invoke-factory>
<construct class="impl.ApplicationSpecificationInitializer">
<set-service property="classpathResourceFactory" service-id="tapestry.ClasspathResourceFactory"/>
<set-service property="globals" service-id="tapestry.globals.ApplicationGlobals"/>
<set-service property="parser" service-id="tapestry.parse.SpecificationParser"/>
</construct>
</invoke-factory>
</service-point>
<service-point id="WebContextInitializer" interface="ApplicationInitializer">
Creates and stores the WebContext (wrapper around the ServletContext)
into ApplicationGlobals.
<invoke-factory>
<construct class="impl.WebContextInitializer">
<set-service property="globals" service-id="tapestry.globals.ApplicationGlobals"/>
</construct>
</invoke-factory>
</service-point>
<contribution configuration-id="ApplicationInitializers">
<command id="WebContextInitializer" object="service:WebContextInitializer" before="*"/>
<command id="ApplicationSpecificationInitializer" object="service:ApplicationSpecificationInitializer"/>
</contribution>
</module>