private boolean isOutputChannelRequired() { if (this.currentComponent != null) { Object currentElement = this.currentComponent; if (AopUtils.isAopProxy(currentElement)) { currentElement = extractProxyTarget(currentElement); } return currentElement instanceof AbstractMessageProducingHandler || currentElement instanceof SourcePollingChannelAdapterSpec; } return false; }
private static Object extractProxyTarget(Object target) { if (!(target instanceof Advised)) { return target; } Advised advised = (Advised) target; try { return extractProxyTarget(advised.getTargetSource().getTarget()); } catch (Exception e) { throw new BeanCreationException("Could not extract target", e); } }
private boolean isOutputChannelRequired() { if (this.currentComponent != null) { Object currentElement = this.currentComponent; if (AopUtils.isAopProxy(currentElement)) { currentElement = extractProxyTarget(currentElement); } return currentElement instanceof AbstractMessageProducingHandler || currentElement instanceof SourcePollingChannelAdapterSpec; } return false; }
private boolean isOutputChannelRequired() { if (this.currentComponent != null) { Object currentComponent = this.currentComponent; if (AopUtils.isAopProxy(currentComponent)) { currentComponent = extractProxyTarget(currentComponent); } return currentComponent instanceof AbstractMessageProducingHandler || currentComponent instanceof SourcePollingChannelAdapterSpec; } return false; }
private boolean isOutputChannelRequired() { if (this.currentComponent != null) { Object currentComponent = this.currentComponent; if (AopUtils.isAopProxy(currentComponent)) { currentComponent = extractProxyTarget(currentComponent); } return currentComponent instanceof AbstractMessageProducingHandler || currentComponent instanceof SourcePollingChannelAdapterSpec; } return false; }
private static Object extractProxyTarget(Object target) { if (!(target instanceof Advised)) { return target; } Advised advised = (Advised) target; try { return extractProxyTarget(advised.getTargetSource().getTarget()); } catch (Exception e) { throw new BeanCreationException("Could not extract target", e); } }
private static Object extractProxyTarget(Object target) { if (!(target instanceof Advised)) { return target; } Advised advised = (Advised) target; if (advised.getTargetSource() == null) { return null; } try { return extractProxyTarget(advised.getTargetSource().getTarget()); } catch (Exception e) { throw new BeanCreationException("Could not extract target", e); } }
private static Object extractProxyTarget(Object target) { if (!(target instanceof Advised)) { return target; } Advised advised = (Advised) target; if (advised.getTargetSource() == null) { return null; } try { return extractProxyTarget(advised.getTargetSource().getTarget()); } catch (Exception e) { throw new BeanCreationException("Could not extract target", e); } }
currentComponent = extractProxyTarget(currentComponent);
currentComponent = extractProxyTarget(currentComponent);