@@ -114,8 +114,8 @@ public class BeanFactoryAwareFunctionRegistry extends SimpleFunctionRegistry imp
|
|||||||
Set<String> functionRegistratioinNames = super.getNames(null);
|
Set<String> functionRegistratioinNames = super.getNames(null);
|
||||||
String[] functionNames = StringUtils.delimitedListToStringArray(functionDefinition.replaceAll(",", "|").trim(), "|");
|
String[] functionNames = StringUtils.delimitedListToStringArray(functionDefinition.replaceAll(",", "|").trim(), "|");
|
||||||
for (String functionName : functionNames) {
|
for (String functionName : functionNames) {
|
||||||
if (functionRegistratioinNames.contains(functionName)) {
|
if (functionRegistratioinNames.contains(functionName) && logger.isDebugEnabled()) {
|
||||||
logger.info("Skipping function '" + functionName + "' since it is already present");
|
logger.debug("Skipping function '" + functionName + "' since it is already present");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Object functionCandidate = this.discoverFunctionInBeanFactory(functionName);
|
Object functionCandidate = this.discoverFunctionInBeanFactory(functionName);
|
||||||
|
|||||||
@@ -229,7 +229,10 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
|||||||
wrappedFunction = new FunctionInvocationWrapper(function) {
|
wrappedFunction = new FunctionInvocationWrapper(function) {
|
||||||
@Override
|
@Override
|
||||||
Object doApply(Object input) {
|
Object doApply(Object input) {
|
||||||
logger.info("Executing around advise(s)");
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("Executing around advise(s): " + functionAroundWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
return functionAroundWrapper.apply(input, function);
|
return functionAroundWrapper.apply(input, function);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1063,14 +1066,17 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
|||||||
|
|
||||||
if (FunctionTypeUtils.isMessage(type)) {
|
if (FunctionTypeUtils.isMessage(type)) {
|
||||||
if (convertedInput == null) {
|
if (convertedInput == null) {
|
||||||
/*
|
if (logger.isDebugEnabled()) {
|
||||||
* In the event conversion was unsuccessful we simply return the original un-converted message.
|
/*
|
||||||
* This will help to deal with issues like KafkaNull and others. However if this was not the intention
|
* In the event conversion was unsuccessful we simply return the original un-converted message.
|
||||||
* of the developer, this would be discovered early in the development process where the
|
* This will help to deal with issues like KafkaNull and others. However if this was not the intention
|
||||||
* additional message converter could be added to facilitate the conversion.
|
* of the developer, this would be discovered early in the development process where the
|
||||||
*/
|
* additional message converter could be added to facilitate the conversion.
|
||||||
logger.info("Input type conversion of payload " + message.getPayload() + " resulted in 'null'. "
|
*/
|
||||||
+ "Will use the original message as input.");
|
logger.debug("Input type conversion of payload " + message.getPayload() + " resulted in 'null'. "
|
||||||
|
+ "Will use the original message as input.");
|
||||||
|
}
|
||||||
|
|
||||||
convertedInput = message;
|
convertedInput = message;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user