source: main/branches/2.1/src/main/webapps/ibisph-view/WEB-INF/config/spring/home.xml @ 3663

Last change on this file since 3663 was 3663, checked in by Garth Braithwaite, 10 years ago

java and view webapp - commit that has most of model map. committing before ripping out some code and cleaning up more model maps.

File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4        IBIS-PH View System's "home" module related Spring properties. These
5        properties are all specific to the "home" type requests.  These properties
6        include home specific resources, controllers, and views.
7-->
8
9<beans default-lazy-init="false" default-autowire="no"
10        xmlns="http://www.springframework.org/schema/beans"
11        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"
13>
14
15        <!--  M O D E L S   /   C O N T R O L L E R   R E S O R U C E S -->
16        <bean id="Home.HTMLContent.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
17                <property name="targetObject" ref="Common.Context.Servlet"/>
18                <property name="targetMethod" value="getRealPath"/>
19                <property name="arguments"><list><value>xml/home/html_content</value></list></property>
20        </bean>
21        <bean id="Home.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID">
22                <constructor-arg ref="Home.HTMLContent.XML.Path"/>
23                <constructor-arg value="Welcome.xml"/>
24        </bean>
25
26        <bean id="Home.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties">
27                <property name="XMLPath" ref="Home.HTMLContent.XML.Path"/>
28        </bean>
29        <bean id="Home.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties">
30                <property name="defaultModelIfNullModel" ref="Home.Introduction.XML.SystemID"/>
31        </bean>
32
33
34        <!--  C O N T R O L L E R S  -->
35        <bean id="Home.HTMLContent.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
36                <property name="modelMapList">
37                        <list>
38                                <ref bean="Home.HTMLContent.ModelMap"/>
39                                <ref bean="Home.DefaultHTMLContent.ModelMap"/>
40                                <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/>
41                                <ref bean="Common.HTTPRequestParameters.ModelMap"/>
42                                <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/>
43                        </list>
44                </property>
45                <property name="view" ref="Home.HTMLContent.View"/>
46        </bean>
47
48       
49        <!--  V I E W   R E S O U R C E S  -->
50        <bean id="Home.HTMLContent.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
51                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
52                <constructor-arg value="xslt/html/home/HTMLContentPage.xslt"/>
53        </bean>
54
55
56        <!--  V I E W S  -->
57        <bean id="Home.HTMLContent.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
58                <constructor-arg ref="Home.HTMLContent.XSLT.SystemID"/>
59                <constructor-arg ref="Common.XSLT.Transformation"/>
60        </bean>
61</beans>
62
Note: See TracBrowser for help on using the repository browser.