[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/system/conf/global-system.xml
noreply at shibboleth.net
noreply at shibboleth.net
Tue Oct 18 14:21:47 EDT 2016
Author: scantor
Date: Tue Oct 18 14:21:46 2016
New Revision: 8505
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8505&view=rev
Log:
Install default Jackson ObjectMapper.
Modified:
trunk/idp-conf/src/main/resources/system/conf/global-system.xml
Modified: trunk/idp-conf/src/main/resources/system/conf/global-system.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/system/conf/global-system.xml?rev=8505&r1=8504&r2=8505&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/system/conf/global-system.xml (original)
+++ trunk/idp-conf/src/main/resources/system/conf/global-system.xml Tue Oct 18 14:21:46 2016
@@ -320,6 +320,26 @@
</constructor-arg>
</bean>
+ <!-- Default Jackson ObjectMapper with JodaTime support. -->
+
+ <bean id="shibboleth.JSONObjectMapper" class="com.fasterxml.jackson.databind.ObjectMapper" />
+
+ <bean class="org.springframework.beans.factory.config.MethodInvokingBean"
+ p:targetObject-ref="shibboleth.JSONObjectMapper"
+ p:targetMethod="registerModule">
+ <property name="arguments">
+ <bean class="com.fasterxml.jackson.datatype.joda.JodaModule" />
+ </property>
+ </bean>
+
+ <bean class="org.springframework.beans.factory.config.MethodInvokingBean"
+ p:targetObject-ref="shibboleth.JSONObjectMapper"
+ p:targetMethod="setDateFormat">
+ <property name="arguments">
+ <bean class="java.text.SimpleDateFormat" c:_0="YYYY-MM-dd'T'HH:mm:ss.SSSZZ" />
+ </property>
+ </bean>
+
<!-- Action bean templates. -->
<bean id="shibboleth.AbstractPopulateAuditContext" abstract="true"
More information about the commits
mailing list