← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 22219: minor, make sure to wrap node serializers in proxy

 

------------------------------------------------------------
revno: 22219
committer: Morten Olav Hansen <morten@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2016-03-10 11:37:34 +0700
message:
  minor, make sure to wrap node serializers in proxy
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml	2016-03-10 04:07:04 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml	2016-03-10 04:37:34 +0000
@@ -51,15 +51,25 @@
 
   <bean class="org.hisp.dhis.node.converters.SizeNodePropertyConverter" />
 
-  <bean class="org.hisp.dhis.node.serializers.CsvNodeSerializer" />
-
-  <bean class="org.hisp.dhis.node.serializers.ExcelNodeSerializer" />
-
-  <bean class="org.hisp.dhis.node.serializers.Jackson2JsonNodeSerializer" />
-
-  <bean class="org.hisp.dhis.node.serializers.PdfNodeSerializer" />
-
-  <bean class="org.hisp.dhis.node.serializers.StAXNodeSerializer" />
+  <bean class="org.hisp.dhis.node.serializers.CsvNodeSerializer" scope="prototype">
+    <aop:scoped-proxy proxy-target-class="false" />
+  </bean>
+
+  <bean class="org.hisp.dhis.node.serializers.ExcelNodeSerializer" scope="prototype">
+    <aop:scoped-proxy proxy-target-class="false" />
+  </bean>
+
+  <bean class="org.hisp.dhis.node.serializers.Jackson2JsonNodeSerializer" scope="prototype">
+    <aop:scoped-proxy proxy-target-class="false" />
+  </bean>
+
+  <bean class="org.hisp.dhis.node.serializers.PdfNodeSerializer" scope="prototype">
+    <aop:scoped-proxy proxy-target-class="false" />
+  </bean>
+
+  <bean class="org.hisp.dhis.node.serializers.StAXNodeSerializer" scope="prototype">
+    <aop:scoped-proxy proxy-target-class="false" />
+  </bean>
 
   <bean id="org.hisp.dhis.fieldfilter.FieldParser" class="org.hisp.dhis.fieldfilter.DefaultFieldParser" />