INT-3017: Redis Queue Adapters: Namespace Support
JIRA: https://jira.springsource.org/browse/INT-3017 * Add parsers tests and integration tests * Polishing Redis XSD * Fix `JmsMessageDrivenEndpointParser` `LifeCycle` attributes * Catch `RedisSystemException` after `this.boundListOperations.rightPop`. It maybe an exception about 'connection closed'. If the `RedisQueueMessageDrivenEndpoint` is 'active' this exception is rethrown, otherwise just logged under error category. * Add Redis queue components docs JIRA: https://jira.springsource.org/browse/INT-3019 INT-3017 Doc Polishing
This commit is contained in:
committed by
Gary Russell
parent
5be8ef3fd8
commit
ce1f467793
@@ -172,9 +172,19 @@ public abstract class IntegrationNamespaceUtils {
|
||||
*/
|
||||
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
|
||||
String attributeName, String propertyName) {
|
||||
String attributeValue = element.getAttribute(attributeName);
|
||||
if (StringUtils.hasText(attributeValue)) {
|
||||
builder.addPropertyReference(propertyName, attributeValue);
|
||||
setReferenceIfAttributeDefined(builder, element, attributeName, propertyName, false);
|
||||
}
|
||||
|
||||
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
|
||||
String attributeName, String propertyName, boolean emptyStringAllowed) {
|
||||
if (element.hasAttribute(attributeName)) {
|
||||
String attributeValue = element.getAttribute(attributeName);
|
||||
if (StringUtils.hasText(attributeValue)) {
|
||||
builder.addPropertyReference(propertyName, attributeValue);
|
||||
}
|
||||
else if (emptyStringAllowed) {
|
||||
builder.addPropertyValue(propertyName, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,8 +208,13 @@ public abstract class IntegrationNamespaceUtils {
|
||||
*/
|
||||
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
|
||||
String attributeName) {
|
||||
setReferenceIfAttributeDefined(builder, element, attributeName, false);
|
||||
}
|
||||
|
||||
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
|
||||
String attributeName, boolean emptyStringAllowed) {
|
||||
setReferenceIfAttributeDefined(builder, element, attributeName,
|
||||
Conventions.attributeNameToPropertyName(attributeName));
|
||||
Conventions.attributeNameToPropertyName(attributeName), emptyStringAllowed);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user