INT-722 Modified the ApplicationEventMulicasterParser and affected tests for Spring 3.0 support.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2009 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.
|
||||
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
|
||||
import org.springframework.beans.factory.xml.ParserContext;
|
||||
import org.springframework.context.support.AbstractApplicationContext;
|
||||
import org.springframework.core.SpringVersion;
|
||||
import org.springframework.core.task.TaskExecutor;
|
||||
import org.springframework.integration.context.IntegrationContextUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
@@ -59,7 +60,10 @@ public class ApplicationEventMulticasterParser extends AbstractSingleBeanDefinit
|
||||
TaskExecutor taskExecutor = IntegrationContextUtils.createThreadPoolTaskExecutor(1, 10, 0, "event-multicaster-");
|
||||
builder.addPropertyValue("taskExecutor", taskExecutor);
|
||||
}
|
||||
builder.addPropertyValue("collectionClass", CopyOnWriteArraySet.class);
|
||||
String springVersion = SpringVersion.getVersion();
|
||||
if (springVersion != null && springVersion.startsWith("2")) {
|
||||
builder.addPropertyValue("collectionClass", CopyOnWriteArraySet.class);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user