dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16610
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6356: minor fix
------------------------------------------------------------
revno: 6356
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-03-22 16:14:01 +0100
message:
minor fix
modified:
dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java
--
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-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java 2012-03-22 15:11:32 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java 2012-03-22 15:14:01 +0000
@@ -98,6 +98,20 @@
}
//---------------------------------------------------------------------------------------------------
+ // Global pre-configured instances of ObjectMapper and XmlMapper
+ //---------------------------------------------------------------------------------------------------
+
+ public static ObjectMapper getJsonMapper()
+ {
+ return jsonMapper;
+ }
+
+ public static XmlMapper getXmlMapper()
+ {
+ return xmlMapper;
+ }
+
+ //---------------------------------------------------------------------------------------------------
// JSON
//---------------------------------------------------------------------------------------------------