/** * Return if there are constructor argument values defined for this bean. */ @Override public boolean hasConstructorArgumentValues() { return (this.constructorArgumentValues != null && !this.constructorArgumentValues.isEmpty()); }
/** * Return if there are constructor argument values defined for this bean. */ @Override public boolean hasConstructorArgumentValues() { return (this.constructorArgumentValues != null && !this.constructorArgumentValues.isEmpty()); }
/** * Return if there are constructor argument values defined for this bean. * @since 5.0.2 */ default boolean hasConstructorArgumentValues() { return !getConstructorArgumentValues().isEmpty(); }
/** * Return if there are constructor argument values defined for this bean. * @since 5.0.2 */ default boolean hasConstructorArgumentValues() { return !getConstructorArgumentValues().isEmpty(); }
/** * Return if there are constructor argument values defined for this bean. */ public boolean hasConstructorArgumentValues() { return !this.constructorArgumentValues.isEmpty(); }
@Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { if (beanFactory instanceof BeanDefinitionRegistry) { BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory; if (this.candidateFixedChannelHandlerMap.size() > 0) { for (Entry<String, String> entry : this.candidateFixedChannelHandlerMap.entrySet()) { String handlerName = entry.getKey(); String channelName = entry.getValue(); BeanDefinition handlerBeanDefinition = null; if (registry.containsBeanDefinition(handlerName)) { handlerBeanDefinition = registry.getBeanDefinition(handlerName); } if (handlerBeanDefinition != null && registry.containsBeanDefinition(channelName)) { BeanDefinition inputChannelDefinition = registry.getBeanDefinition(channelName); if (FixedSubscriberChannel.class.getName().equals(inputChannelDefinition.getBeanClassName())) { ConstructorArgumentValues constructorArgumentValues = inputChannelDefinition .getConstructorArgumentValues(); Assert.isTrue(constructorArgumentValues.isEmpty(), "Only one subscriber is allowed for a FixedSubscriberChannel."); constructorArgumentValues.addGenericArgumentValue(handlerBeanDefinition); } } } } } }
ConstructorArgumentValues constructorArgumentValues = inputChannelDefinition .getConstructorArgumentValues(); if (constructorArgumentValues.isEmpty()) { constructorArgumentValues.addGenericArgumentValue(new RuntimeBeanReference(handlerBeanName));
/** * Return if there are constructor argument values defined for this bean. */ public boolean hasConstructorArgumentValues() { return (constructorArgumentValues != null && !constructorArgumentValues.isEmpty()); }
@Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { if (beanFactory instanceof BeanDefinitionRegistry) { BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory; if (this.candidateFixedChannelHandlerMap.size() > 0) { for (Entry<String, String> entry : this.candidateFixedChannelHandlerMap.entrySet()) { String handlerName = entry.getKey(); String channelName = entry.getValue(); BeanDefinition handlerBeanDefinition = null; if (registry.containsBeanDefinition(handlerName)) { handlerBeanDefinition = registry.getBeanDefinition(handlerName); } if (handlerBeanDefinition != null && registry.containsBeanDefinition(channelName)) { BeanDefinition inputChannelDefinition = registry.getBeanDefinition(channelName); if (FixedSubscriberChannel.class.getName().equals(inputChannelDefinition.getBeanClassName())) { ConstructorArgumentValues constructorArgumentValues = inputChannelDefinition .getConstructorArgumentValues(); Assert.isTrue(constructorArgumentValues.isEmpty(), "Only one subscriber is allowed for a FixedSubscriberChannel."); constructorArgumentValues.addGenericArgumentValue(handlerBeanDefinition); } } } } } }
if(! bd.getConstructorArgumentValues().isEmpty()) { for(ValueHolder vh : bd.getConstructorArgumentValues().getGenericArgumentValues()) { Object v = vh.getValue();
ConstructorArgumentValues constructorArgumentValues = inputChannelDefinition .getConstructorArgumentValues(); if (constructorArgumentValues.isEmpty()) { constructorArgumentValues.addGenericArgumentValue(new RuntimeBeanReference(handlerBeanName));
if(! bd.getConstructorArgumentValues().isEmpty()) { for(ValueHolder vh : bd.getConstructorArgumentValues().getGenericArgumentValues()) { Object v = vh.getValue();