1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <!-- |
---|
4 | IBIS-PH View System's "indicator profile" module related Spring properties. |
---|
5 | These properties are all specific to the "indicator" type requests and |
---|
6 | include indicator profile specific resources, controllers, and |
---|
7 | views. |
---|
8 | --> |
---|
9 | |
---|
10 | <beans default-lazy-init="false" default-autowire="no" |
---|
11 | xmlns="http://www.springframework.org/schema/beans" |
---|
12 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
13 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" |
---|
14 | > |
---|
15 | |
---|
16 | <!-- 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 --> |
---|
17 | <bean id="Indicator.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> |
---|
18 | <property name="targetObject" ref="Common.Context.Servlet"/> |
---|
19 | <property name="targetMethod" value="getRealPath"/> |
---|
20 | <property name="arguments"> <list><value>xml/indicator</value></list></property> |
---|
21 | </bean> |
---|
22 | <bean id="Indicator.Profile.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> |
---|
23 | <property name="targetObject" ref="Common.Context.Servlet"/> |
---|
24 | <property name="targetMethod" value="getRealPath"/> |
---|
25 | <property name="arguments"> <list><value>xml/indicator/profile</value></list></property> |
---|
26 | </bean> |
---|
27 | <bean id="Indicator.HTMLContent.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> |
---|
28 | <property name="targetObject" ref="Common.Context.Servlet"/> |
---|
29 | <property name="targetMethod" value="getRealPath"/> |
---|
30 | <property name="arguments"> <list><value>xml/indicator/html_content</value></list></property> |
---|
31 | </bean> |
---|
32 | |
---|
33 | <bean id="Indicator.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
34 | <constructor-arg ref="Indicator.HTMLContent.XML.Path"/> |
---|
35 | <constructor-arg value="Introduction.xml"/> |
---|
36 | </bean> |
---|
37 | <bean id="Indicator.PublishedIndicatorProfiles.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
38 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
39 | <constructor-arg value="xml/indicator/published_profiles.xml"/> |
---|
40 | </bean> |
---|
41 | <bean id="Indicator.CategorziedIndex.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
42 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
43 | <constructor-arg value="xml/indicator/categorized_index.xml"/> |
---|
44 | </bean> |
---|
45 | |
---|
46 | |
---|
47 | <!-- X M L M O D E L S --> |
---|
48 | <bean id="Indicator.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> |
---|
49 | <property name="XMLPath" ref="Indicator.HTMLContent.XML.Path"/> |
---|
50 | </bean> |
---|
51 | <bean id="Indicator.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> |
---|
52 | <property name="defaultModelIfNullModel" ref="Indicator.Introduction.XML.SystemID"/> |
---|
53 | </bean> |
---|
54 | <bean id="Indicator.PublishedIndicatorProfiles.ModelMap" class="org.ibisph.modelmap.SimpleModelMap" parent="Common.XMLModelMap.CommonProperties"> |
---|
55 | <property name="model" ref="Indicator.PublishedIndicatorProfiles.XML.SystemID"/> |
---|
56 | </bean> |
---|
57 | <bean id="Indicator.CategorziedIndex.ModelMap" class="org.ibisph.modelmap.SimpleModelMap" parent="Common.XMLModelMap.CommonProperties"> |
---|
58 | <property name="model" ref="Indicator.CategorziedIndex.XML.SystemID"/> |
---|
59 | </bean> |
---|
60 | <bean id="Indicator.Profile.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> |
---|
61 | <property name="XMLPath" ref="Indicator.Profile.XML.Path"/> |
---|
62 | </bean> |
---|
63 | |
---|
64 | <bean id="Indicator.SelectedRelationName.ModelMap" class="org.ibisph.indicatorprofile.modelmap.RelationNameFromHTTPRequest"> |
---|
65 | <property name="modelMapKey" value="RelationName"/> |
---|
66 | </bean> |
---|
67 | |
---|
68 | |
---|
69 | <!-- C O N T R O L L E R S --> |
---|
70 | <bean id="Indicator.HTMLContent.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController"> |
---|
71 | <property name="modelMapList"> |
---|
72 | <list> |
---|
73 | <ref bean="Indicator.HTMLContent.ModelMap"/> |
---|
74 | <ref bean="Indicator.DefaultHTMLContent.ModelMap"/> |
---|
75 | <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> |
---|
76 | <ref bean="Common.HTTPRequestParameters.ModelMap"/> |
---|
77 | <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> |
---|
78 | </list> |
---|
79 | </property> |
---|
80 | <property name="view" ref="Indicator.HTMLContent.View"/> |
---|
81 | </bean> |
---|
82 | |
---|
83 | <bean id="Indicator.AlphabeticalIndex.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController"> |
---|
84 | <property name="modelMapList"> |
---|
85 | <list> |
---|
86 | <ref bean="Indicator.PublishedIndicatorProfiles.ModelMap"/> |
---|
87 | <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> |
---|
88 | <ref bean="Common.HTTPRequestParameters.ModelMap"/> |
---|
89 | <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> |
---|
90 | </list> |
---|
91 | </property> |
---|
92 | <property name="view" ref="Indicator.AlphabeticalIndex.View"/> |
---|
93 | </bean> |
---|
94 | <bean id="Indicator.CategorizedIndex.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController"> |
---|
95 | <property name="modelMapList"> |
---|
96 | <list> |
---|
97 | <ref bean="Indicator.CategorziedIndex.ModelMap"/> |
---|
98 | <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> |
---|
99 | <ref bean="Common.HTTPRequestParameters.ModelMap"/> |
---|
100 | <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> |
---|
101 | </list> |
---|
102 | </property> |
---|
103 | <property name="view" ref="Indicator.CategorizedIndex.View"/> |
---|
104 | </bean> |
---|
105 | |
---|
106 | |
---|
107 | <bean id="Indicator.Profile.Controller.CommonProperties" class="org.ibisph.web.springmvc.ModelMapListProcessingController" |
---|
108 | abstract="true" |
---|
109 | > |
---|
110 | <property name="modelMapList"> |
---|
111 | <list> |
---|
112 | <ref bean="Indicator.Profile.ModelMap"/> |
---|
113 | </list> |
---|
114 | </property> |
---|
115 | </bean> |
---|
116 | <bean id="Indicator.View.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
117 | <property name="view" ref="Indicator.View.View"/> |
---|
118 | </bean> |
---|
119 | <bean id="Indicator.ImportantFacts.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
120 | <property name="view" ref="Indicator.ImportantFacts.View"/> |
---|
121 | </bean> |
---|
122 | |
---|
123 | <bean id="Indicator.RelatedIndicators.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
124 | <property name="modelMapList"> |
---|
125 | <list> |
---|
126 | <ref bean="Indicator.SelectedRelationName.ModelMap"/> |
---|
127 | </list> |
---|
128 | </property> |
---|
129 | <property name="view" ref="Indicator.RelatedIndicators.View"/> |
---|
130 | </bean> |
---|
131 | |
---|
132 | <bean id="Indicator.AvailableServices.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
133 | <property name="view" ref="Indicator.AvailableServices.View"/> |
---|
134 | </bean> |
---|
135 | <bean id="Indicator.OtherResources.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
136 | <property name="view" ref="Indicator.OtherResources.View"/> |
---|
137 | </bean> |
---|
138 | <bean id="Indicator.ViewNumbers.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
139 | <property name="view" ref="Indicator.ViewNumbers.View"/> |
---|
140 | </bean> |
---|
141 | <bean id="Indicator.CompleteProfile.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> |
---|
142 | <property name="view" ref="Indicator.CompleteProfile.View"/> |
---|
143 | </bean> |
---|
144 | |
---|
145 | <bean id="Indicator.ChartGraphic.Controller" class="org.ibisph.indicatorprofile.springmvc.XMLChartGraphicController"> |
---|
146 | <property name="XMLPath" ref="Indicator.Profile.XML.Path"/> |
---|
147 | <property name="chartDataService"><bean class="org.ibisph.indicatorprofile.service.ChartDataFromIndicatorViewXML"/></property> |
---|
148 | <property name="viewNamePrefix" ref="Chart.ViewNamePrefix"/> |
---|
149 | <property name="viewNameSuffix" ref="Chart.ViewNameSuffix"/> |
---|
150 | </bean> |
---|
151 | |
---|
152 | |
---|
153 | |
---|
154 | <!-- V I E W R E S O U R C E S --> |
---|
155 | <bean id="Indicator.HTMLContent.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
156 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
157 | <constructor-arg value="xslt/html/indicator/HTMLContentPage.xslt"/> |
---|
158 | </bean> |
---|
159 | |
---|
160 | <bean id="Indicator.AlphabeticalIndex.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
161 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
162 | <constructor-arg value="xslt/html/indicator/index/alphabetical/AlphabeticalPage.xslt"/> |
---|
163 | </bean> |
---|
164 | <bean id="Indicator.CategorizedIndex.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
165 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
166 | <constructor-arg value="xslt/html/indicator/index/categorized/CategorizedPage.xslt"/> |
---|
167 | </bean> |
---|
168 | |
---|
169 | <bean id="Indicator.View.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
170 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
171 | <constructor-arg value="xslt/html/indicator/profile/view/ViewPage.xslt"/> |
---|
172 | </bean> |
---|
173 | <bean id="Indicator.ImportantFacts.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
174 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
175 | <constructor-arg value="xslt/html/indicator/profile/important_facts/ImportantFactsPage.xslt"/> |
---|
176 | </bean> |
---|
177 | <bean id="Indicator.AvailableServices.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
178 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
179 | <constructor-arg value="xslt/html/indicator/profile/available_services/AvailableServicesPage.xslt"/> |
---|
180 | </bean> |
---|
181 | <bean id="Indicator.OtherResources.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
182 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
183 | <constructor-arg value="xslt/html/indicator/profile/other_resources/OtherResourcesPage.xslt"/> |
---|
184 | </bean> |
---|
185 | <bean id="Indicator.RelatedIndicators.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
186 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
187 | <constructor-arg value="xslt/html/indicator/profile/related_indicators/RelatedIndicatorsPage.xslt"/> |
---|
188 | </bean> |
---|
189 | <bean id="Indicator.CompleteProfile.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
190 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
191 | <constructor-arg value="xslt/html/indicator/profile/complete_profile/CompleteProfilePage.xslt"/> |
---|
192 | </bean> |
---|
193 | <bean id="Indicator.ViewNumbers.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID"> |
---|
194 | <constructor-arg ref="Common.Context.Servlet.RootPath"/> |
---|
195 | <constructor-arg value="xslt/html/indicator/profile/view_numbers/ViewNumbersPage.xslt"/> |
---|
196 | </bean> |
---|
197 | |
---|
198 | |
---|
199 | |
---|
200 | <!-- V I E W S --> |
---|
201 | <bean id="Indicator.HTMLContent.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
202 | <constructor-arg ref="Indicator.HTMLContent.XSLT.SystemID"/> |
---|
203 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
204 | </bean> |
---|
205 | |
---|
206 | <bean id="Indicator.AlphabeticalIndex.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
207 | <constructor-arg ref="Indicator.AlphabeticalIndex.XSLT.SystemID"/> |
---|
208 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
209 | </bean> |
---|
210 | <bean id="Indicator.CategorizedIndex.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
211 | <constructor-arg ref="Indicator.CategorizedIndex.XSLT.SystemID"/> |
---|
212 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
213 | </bean> |
---|
214 | |
---|
215 | <bean id="Indicator.View.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
216 | <constructor-arg ref="Indicator.View.XSLT.SystemID"/> |
---|
217 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
218 | </bean> |
---|
219 | <bean id="Indicator.ImportantFacts.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
220 | <constructor-arg ref="Indicator.ImportantFacts.XSLT.SystemID"/> |
---|
221 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
222 | </bean> |
---|
223 | <bean id="Indicator.AvailableServices.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
224 | <constructor-arg ref="Indicator.AvailableServices.XSLT.SystemID"/> |
---|
225 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
226 | </bean> |
---|
227 | <bean id="Indicator.OtherResources.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
228 | <constructor-arg ref="Indicator.OtherResources.XSLT.SystemID"/> |
---|
229 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
230 | </bean> |
---|
231 | <bean id="Indicator.RelatedIndicators.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
232 | <constructor-arg ref="Indicator.RelatedIndicators.XSLT.SystemID"/> |
---|
233 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
234 | </bean> |
---|
235 | <bean id="Indicator.CompleteProfile.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
236 | <constructor-arg ref="Indicator.CompleteProfile.XSLT.SystemID"/> |
---|
237 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
238 | </bean> |
---|
239 | <bean id="Indicator.ViewNumbers.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView"> |
---|
240 | <constructor-arg ref="Indicator.ViewNumbers.XSLT.SystemID"/> |
---|
241 | <constructor-arg ref="Common.XSLT.Transformation"/> |
---|
242 | </bean> |
---|
243 | </beans> |
---|
244 | |
---|