SPR-6460 Added "phase" attribute to the JMS "listener-container" element.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2535 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Mark Fisher
2009-11-27 17:42:30 +00:00
parent 6ab737cc87
commit ba1ceeeb84
4 changed files with 47 additions and 2 deletions
@@ -44,6 +44,8 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
private static final String ERROR_HANDLER_ATTRIBUTE = "error-handler";
private static final String PHASE_ATTRIBUTE = "phase";
private static final String CACHE_ATTRIBUTE = "cache";
@@ -107,6 +109,11 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
new RuntimeBeanReference(destinationResolverBeanName));
}
String phase = containerEle.getAttribute(PHASE_ATTRIBUTE);
if (StringUtils.hasText(phase)) {
containerDef.getPropertyValues().add("phase", phase);
}
String cache = containerEle.getAttribute(CACHE_ATTRIBUTE);
if (StringUtils.hasText(cache)) {
if (containerType.startsWith("simple")) {