source: main/branches/2.1/src/main/webapps/ibisph-view/WEB-INF/config/spring/phom.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: 4.0 KB
RevLine 
[3529]1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4        IBIS-PH View System's "PHOM" module related Spring properties. These
5        properties are all specific to the "phom" type requests and include
6        PHOM 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="PHOM.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/phom/html_content</value></list></property>
20        </bean>
21
22        <bean id="PHOM.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID">
23                <constructor-arg ref="PHOM.HTMLContent.XML.Path"/>
24                <constructor-arg value="Introduction.xml"/>
25        </bean>
26
27
[3653]28        <bean id="PHOM.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties">
[3529]29                <property name="XMLPath" ref="PHOM.HTMLContent.XML.Path"/>
30        </bean>
[3653]31        <bean id="PHOM.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties">
[3652]32                <property name="defaultModelIfNullModel" ref="PHOM.Introduction.XML.SystemID"/>
[3529]33        </bean>
34
35
36
37        <!--  C O N T R O L L E R S  -->
[3663]38        <bean id="PHOM.HTMLContent.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController">
39                <property name="modelMapList">
[3529]40                        <list>
[3652]41                                <ref bean="PHOM.HTMLContent.ModelMap"/>
42                                <ref bean="PHOM.DefaultHTMLContent.ModelMap"/>
[3663]43                                <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/>
44                                <ref bean="Common.HTTPRequestParameters.ModelMap"/>
45                                <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/>
[3529]46                        </list>
47                </property>
48                <property name="view" ref="PHOM.HTMLContent.View"/>
49        </bean>
[3652]50        <bean id="PHOM.CondensedView.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties">
[3529]51                <property name="view" ref="PHOM.CondensedView.View"/>
52        </bean>
[3652]53        <bean id="PHOM.ExpandedView.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties">
[3529]54                <property name="view" ref="PHOM.ExpandedView.View"/>
55        </bean>
56
57
58
59        <!--  V I E W   R E S O U R C E S  -->
60        <bean id="PHOM.HTMLContent.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
61                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
62                <constructor-arg value="xslt/html/phom/HTMLContentPage.xslt"/>
63        </bean>
64
65        <bean id="PHOM.CondensedView.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
66                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
67                <constructor-arg value="xslt/html/phom/profile/condensed/ViewPage.xslt"/>
68        </bean>
69        <bean id="PHOM.ExpandedView.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
70                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
71                <constructor-arg value="xslt/html/phom/profile/expanded/ViewPage.xslt"/>
72        </bean>
73
74
75
76        <!--  V I E W S  -->
[3535]77        <bean id="PHOM.HTMLContent.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
[3529]78                <constructor-arg ref="PHOM.HTMLContent.XSLT.SystemID"/>
79                <constructor-arg ref="Common.XSLT.Transformation"/>
80        </bean>
81
[3535]82        <bean id="PHOM.CondensedView.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
[3529]83                <constructor-arg ref="PHOM.CondensedView.XSLT.SystemID"/>
84                <constructor-arg ref="Common.XSLT.Transformation"/>
85        </bean>
[3535]86        <bean id="PHOM.ExpandedView.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
[3529]87                <constructor-arg ref="PHOM.ExpandedView.XSLT.SystemID"/>
88                <constructor-arg ref="Common.XSLT.Transformation"/>
89        </bean>
90</beans>
91
Note: See TracBrowser for help on using the repository browser.