Skip to content

Commit 93b45fe

Browse files
committed
feat: ValueFactory.bean method
1 parent 6ef47bf commit 93b45fe

File tree

1 file changed

+5
-1
lines changed
  • int-aws/src/main/java/org/springframework/integration/aws/config/xml

1 file changed

+5
-1
lines changed

int-aws/src/main/java/org/springframework/integration/aws/config/xml/ValueFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ static ValueFactory<TypedStringValue> typedString(Class<?> type) {
1919
}
2020

2121
static ValueFactory<AbstractBeanDefinition> expressionBean() {
22-
return value -> BeanDefinitionBuilder.genericBeanDefinition(ExpressionFactoryBean.class)
22+
return bean(ExpressionFactoryBean.class);
23+
}
24+
25+
static ValueFactory<AbstractBeanDefinition> bean(Class<?> type) {
26+
return value -> BeanDefinitionBuilder.genericBeanDefinition(type)
2327
.addConstructorArgValue(value)
2428
.applyCustomizers(def -> def.setAutowireCandidate(false))
2529
.getBeanDefinition();

0 commit comments

Comments
 (0)