forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r708182 - /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml
Date Mon, 27 Oct 2008 14:01:16 GMT
Author: thorsten
Date: Mon Oct 27 07:01:16 2008
New Revision: 708182

URL: http://svn.apache.org/viewvc?rev=708182&view=rev
Log:
Using spring configuration over old school avalon

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml?rev=708182&r1=708181&r2=708182&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml
(original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/cocoon-2.2-block/src/main/resources/META-INF/cocoon/spring/dispatcher-context.xml
Mon Oct 27 07:01:16 2008
@@ -18,14 +18,27 @@
   limitations under the License.
 -->
 <beans>
-  <!--<bean id="dispatcher" scope="prototype"
+  <bean id="dispatcher"
     name="org.apache.cocoon.transformation.Transformer/dispatcher"
     class="org.apache.forrest.dispatcher.transformation.DispatcherTransformer">
     <property name="manager" ref="org.apache.avalon.framework.service.ServiceManager"/>
+    <property name="config" ref="config"/>
+    <property name="xpathSupport" value="enhanced"/>
   </bean>
-  <bean id="dispatcherEnhanced" scope="prototype"
+  <bean id="dispatcherEnhanced"
     name="org.apache.cocoon.transformation.Transformer/dispatcherEnhanced"
     class="org.apache.forrest.dispatcher.transformation.DispatcherTransformer">
     <property name="manager" ref="org.apache.avalon.framework.service.ServiceManager"/>
-  </bean>-->
+    <property name="config" ref="config"/>
+    <property name="xpathSupport" value="enhanced"/>
+  </bean>
+  <bean id="config"
+    class="org.apache.forrest.dispatcher.config.WritableDispatcherBean">
+    <property name="allowXmlProperties" value="true"/>
+    <property name="shrink" value="false"/>
+    <property name="contractUriSufix" value=""/>
+    <property name="contractUriPrefix" value="cocoon://resolve.contract."/>
+    <property name="staxHelper" ref="staxHelper"/>
+  </bean>
+  <bean id="staxHelper" class="org.apache.forrest.dispatcher.impl.helper.StAX"/>
 </beans>



Mime
View raw message