generating id as a fallback for inbound XMPP channel adapters
This commit is contained in:
@@ -37,6 +37,16 @@ public class ChatMessageInboundChannelAdapterParser extends AbstractSingleBeanDe
|
||||
return "org.springframework.integration.xmpp.inbound.ChatMessageListeningEndpoint";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldGenerateId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldGenerateIdAsFallback() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
|
||||
String connectionName = element.getAttribute("xmpp-connection");
|
||||
|
||||
@@ -36,6 +36,11 @@ public class PresenceInboundChannelAdapterParser extends AbstractSingleBeanDefin
|
||||
return "org.springframework.integration.xmpp.inbound.PresenceListeningEndpoint";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldGenerateId() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldGenerateIdAsFallback() {
|
||||
return true;
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-3.0.xsd
|
||||
http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
|
||||
|
||||
|
||||
<beans:bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<beans:property name="location" value="classpath:test.properties"/>
|
||||
</beans:bean>
|
||||
|
||||
Reference in New Issue
Block a user