From 138e406ba05109ab63706834add6d287f91e7f36 Mon Sep 17 00:00:00 2001 From: Philipp Etschel Date: Wed, 6 Sep 2017 19:44:37 +0200 Subject: [PATCH] INT-4340: Disable XMPP Roster properly JIRA: https://jira.spring.io/browse/INT-4340 * Roster is now disabled on login as well * Fixed tagging and formatting issues * Checkstyle and documented the changed behaviour as well Polishing: rely on the `AbstractFactoryBean.getObject()` **Cherry-pick to 4.3.x** * Upgrade to SF-4.3.11 and Jackson-2.8.10 --- build.gradle | 4 +- .../config/XmppConnectionFactoryBean.java | 33 +++++++++---- .../XmppConnectionFactoryBeanTests.java | 47 ++++++++++++++++++- src/reference/asciidoc/xmpp.adoc | 8 ++-- 4 files changed, 75 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index 4295c49273..6f8e609ad6 100644 --- a/build.gradle +++ b/build.gradle @@ -102,7 +102,7 @@ subprojects { subproject -> hibernateVersion = '5.1.0.Final' hsqldbVersion = '2.3.3' h2Version = '1.4.180' - jackson2Version = '2.8.8' + jackson2Version = '2.8.10' javaxActivationVersion = '1.1.1' javaxMailVersion = '1.5.6' jedisVersion = '2.7.3' @@ -136,7 +136,7 @@ subprojects { subproject -> springSecurityVersion = '4.1.4.RELEASE' springSocialTwitterVersion = '1.1.2.RELEASE' springRetryVersion = '1.1.3.RELEASE' - springVersion = project.hasProperty('springVersion') ? project.springVersion : '4.3.10.RELEASE' + springVersion = project.hasProperty('springVersion') ? project.springVersion : '4.3.11.RELEASE' springWsVersion = '2.3.0.RELEASE' xmlUnitVersion = '1.6' xstreamVersion = '1.4.7' diff --git a/spring-integration-xmpp/src/main/java/org/springframework/integration/xmpp/config/XmppConnectionFactoryBean.java b/spring-integration-xmpp/src/main/java/org/springframework/integration/xmpp/config/XmppConnectionFactoryBean.java index 4acfd53b30..724af97e1c 100644 --- a/spring-integration-xmpp/src/main/java/org/springframework/integration/xmpp/config/XmppConnectionFactoryBean.java +++ b/spring-integration-xmpp/src/main/java/org/springframework/integration/xmpp/config/XmppConnectionFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ import org.springframework.util.StringUtils; * @author Oleg Zhurakousky * @author Florian Schmaus * @author Artem Bilan + * @author Philipp Etschel * * @see XMPPTCPConnection * @since 2.0 @@ -162,8 +163,16 @@ public class XmppConnectionFactoryBean extends AbstractFactoryBean +