/** * {@inheritDoc} */ @Override public Class<?> getType(Object instance, String propertyName) { return PropertyProxyUtils.getPropertyAccessor(this.conversionService, this.useDirectFieldAccess, instance).getPropertyType(propertyName); }
channel = new DirectChannel(); channel.setBeanName("_" + this + ".channel#" + i); Assert.notNull(accessor.getPropertyType(OUTPUT_CHANNEL_PROPERTY), "All handlers except for the last one in the chain must implement property '" + OUTPUT_CHANNEL_PROPERTY + "' of type 'MessageChannel'"); accessor.setPropertyValue(OUTPUT_CHANNEL_PROPERTY, channel); else if (accessor.getPropertyType(OUTPUT_CHANNEL_PROPERTY) != null) { MessageChannel replyChannel = (this.outputChannel != null) ? this.outputChannel : new ReplyForwardingMessageChannel();