@Override public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement) { if (enrichmentProcessor instanceof InterceptingChainLifecycleWrapper) { super.addMessageProcessorPathElements(pathElement); } else { ((MessageProcessorContainer) enrichmentProcessor).addMessageProcessorPathElements(pathElement); } }
@Override public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement) { if (delegate instanceof MessageProcessorContainer) { ((MessageProcessorContainer) delegate).addMessageProcessorPathElements(pathElement); } else { NotificationUtils.addMessageProcessorPathElements(Collections.singletonList(delegate), pathElement); } }
@Override public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement) { int idx = 0; for (MessagingExceptionHandlerAcceptor listener : exceptionListeners) { if (listener instanceof MessageProcessorContainer) { MessageProcessorPathElement exceptionListener = pathElement.addChild(String.valueOf(idx)); ((MessageProcessorContainer) listener).addMessageProcessorPathElements(exceptionListener); } idx++; } }
public static void addMessageProcessorPathElements(List<MessageProcessor> processors, MessageProcessorPathElement parentElement) { if (processors == null || parentElement == null) { return; } for (MessageProcessor mp : processors) { if (!(mp instanceof InternalMessageProcessor)) { MessageProcessorPathElement messageProcessorPathElement; // To avoid adding a level in some path elements: if (mp instanceof InterceptingChainLifecycleWrapperPathSkip) { messageProcessorPathElement = parentElement; } else { messageProcessorPathElement = parentElement.addChild(mp); } if (messageProcessorPathElement != null && mp instanceof MessageProcessorContainer) { ((MessageProcessorContainer) mp).addMessageProcessorPathElements(messageProcessorPathElement); } } } }
@Override public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement) { if (getWrappedMessageProcessor() instanceof MessageProcessorContainer) { ((MessageProcessorContainer) getWrappedMessageProcessor()).addMessageProcessorPathElements(pathElement); } } }
@Override public FlowMap buildInnerPaths() { if (dynamicMessageProcessor instanceof MessageProcessorContainer) { ((MessageProcessorContainer) dynamicMessageProcessor).addMessageProcessorPathElements(getPathElement()); return buildPathResolver(getPathElement()); } else { return null; } }
((MessageProcessorContainer) exceptionListener).addMessageProcessorPathElements(exceptionStrategyPathElement);