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

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

view and java - latest refactor commit - home ==> query working.

File size: 3.9 KB
Line 
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
28        <bean id="PHOM.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties">
29                <property name="XMLPath" ref="PHOM.HTMLContent.XML.Path"/>
30        </bean>
31        <bean id="PHOM.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties">
32                <property name="defaultModelIfNullModel" ref="PHOM.Introduction.XML.SystemID"/>
33        </bean>
34
35
36
37        <!--  C O N T R O L L E R S  -->
38        <bean id="PHOM.HTMLContent.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Common.FileSystemID.Controller.CommonProperties">
39                <property name="additionalModelMapList">
40                        <list>
41                                <ref bean="PHOM.HTMLContent.ModelMap"/>
42                                <ref bean="PHOM.DefaultHTMLContent.ModelMap"/>
43                        </list>
44                </property>
45                <property name="view" ref="PHOM.HTMLContent.View"/>
46        </bean>
47        <bean id="PHOM.CondensedView.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties">
48                <property name="view" ref="PHOM.CondensedView.View"/>
49        </bean>
50        <bean id="PHOM.ExpandedView.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties">
51                <property name="view" ref="PHOM.ExpandedView.View"/>
52        </bean>
53
54
55
56        <!--  V I E W   R E S O U R C E S  -->
57        <bean id="PHOM.HTMLContent.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
58                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
59                <constructor-arg value="xslt/html/phom/HTMLContentPage.xslt"/>
60        </bean>
61
62        <bean id="PHOM.CondensedView.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
63                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
64                <constructor-arg value="xslt/html/phom/profile/condensed/ViewPage.xslt"/>
65        </bean>
66        <bean id="PHOM.ExpandedView.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
67                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
68                <constructor-arg value="xslt/html/phom/profile/expanded/ViewPage.xslt"/>
69        </bean>
70
71
72
73        <!--  V I E W S  -->
74        <bean id="PHOM.HTMLContent.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
75                <constructor-arg ref="PHOM.HTMLContent.XSLT.SystemID"/>
76                <constructor-arg ref="Common.XSLT.Transformation"/>
77        </bean>
78
79        <bean id="PHOM.CondensedView.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
80                <constructor-arg ref="PHOM.CondensedView.XSLT.SystemID"/>
81                <constructor-arg ref="Common.XSLT.Transformation"/>
82        </bean>
83        <bean id="PHOM.ExpandedView.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
84                <constructor-arg ref="PHOM.ExpandedView.XSLT.SystemID"/>
85                <constructor-arg ref="Common.XSLT.Transformation"/>
86        </bean>
87</beans>
88
Note: See TracBrowser for help on using the repository browser.