/** * Return a bean instance if necessary resolving the bean name through the BeanFactory. */ public Object resolveBean() { return (this.bean instanceof String ? obtainBeanFactory().getBean((String) this.bean) : this.bean); }
/** * Return a bean instance if necessary resolving the bean name through the BeanFactory. */ public Object resolveBean() { return (this.bean instanceof String ? obtainBeanFactory().getBean((String) this.bean) : this.bean); }
/** * Return the type of the contained bean. * <p>If the bean type is a CGLIB-generated class, the original * user-defined class is returned. */ @Nullable public Class<?> getBeanType() { Class<?> beanType = (this.bean instanceof String ? obtainBeanFactory().getType((String) this.bean) : this.bean.getClass()); return (beanType != null ? ClassUtils.getUserClass(beanType) : null); }
/** * Return the type of the contained bean. * <p>If the bean type is a CGLIB-generated class, the original * user-defined class is returned. */ @Nullable public Class<?> getBeanType() { Class<?> beanType = (this.bean instanceof String ? obtainBeanFactory().getType((String) this.bean) : this.bean.getClass()); return (beanType != null ? ClassUtils.getUserClass(beanType) : null); }
/** * Return a bean instance if necessary resolving the bean name through the BeanFactory. */ public Object resolveBean() { return (this.bean instanceof String ? obtainBeanFactory().getBean((String) this.bean) : this.bean); }
/** * Return the type of the contained bean. * <p>If the bean type is a CGLIB-generated class, the original * user-defined class is returned. */ @Nullable public Class<?> getBeanType() { Class<?> beanType = (this.bean instanceof String ? obtainBeanFactory().getType((String) this.bean) : this.bean.getClass()); return (beanType != null ? ClassUtils.getUserClass(beanType) : null); }
/** * Return the type of the contained bean. * <p>If the bean type is a CGLIB-generated class, the original * user-defined class is returned. */ @Nullable public Class<?> getBeanType() { Class<?> beanType = (this.bean instanceof String ? obtainBeanFactory().getType((String) this.bean) : this.bean.getClass()); return (beanType != null ? ClassUtils.getUserClass(beanType) : null); }