|
|
|
@ -51,11 +51,9 @@ class OnExpressionCondition extends SpringBootCondition {
|
|
|
|
|
boolean result = evaluateExpression(beanFactory, expression);
|
|
|
|
|
return new ConditionOutcome(result, messageBuilder.resultedIn(result));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return ConditionOutcome
|
|
|
|
|
.noMatch(messageBuilder.because("no BeanFactory available."));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Boolean evaluateExpression(ConfigurableListableBeanFactory beanFactory,
|
|
|
|
|
String expression) {
|
|
|
|
|