Package org.springframework.beans.factory.config

Examples of org.springframework.beans.factory.config.DependencyDescriptor


                Object value;
                if (this.cached) {
                    value = resolvedCachedArgument(beanName, this.cachedFieldValue);
                }
                else {
                    DependencyDescriptor descriptor = new DependencyDescriptor(field, this.required);
                    Set<String> autowiredBeanNames = new LinkedHashSet<String>(1);
                    TypeConverter typeConverter = beanFactory.getTypeConverter();
                    value = beanFactory.resolveDependency(descriptor, beanName, autowiredBeanNames, typeConverter);
                    synchronized (this) {
                        if (!this.cached) {
View Full Code Here


                    Set<String> autowiredBeanNames = new LinkedHashSet<String>(paramTypes.length);
                    TypeConverter typeConverter = beanFactory.getTypeConverter();
                    for (int i = 0; i < arguments.length; i++) {
                        MethodParameter methodParam = new MethodParameter(method, i);
                        GenericTypeResolver.resolveParameterType(methodParam, bean.getClass());
                        descriptors[i] = new DependencyDescriptor(methodParam, this.required);
                        arguments[i] = beanFactory.resolveDependency(
                                descriptors[i], beanName, autowiredBeanNames, typeConverter);
                        if (arguments[i] == null && !this.required) {
                            arguments = null;
                            break;
View Full Code Here

            }

            Object object = null;

            if (context != null) {
                DependencyDescriptor dd = new DependencyDescriptor(new MethodParameter(constructor, argIndex), required);
                object = context.resolveDependency(dd, null);
            }

            return object;
        }
View Full Code Here

            }

            Object object = null;

            if (context != null) {
                DependencyDescriptor dd = new DependencyDescriptor(new MethodParameter(constructor, argIndex), required);
                object = context.resolveDependency(dd, null);
            }

            return object;
        }
View Full Code Here

            }

            Object object = null;

            if (context != null) {
                DependencyDescriptor dd = new DependencyDescriptor(new MethodParameter(constructor, argIndex), required);
                object = context.resolveDependency(dd, null);
            }

            return object;
        }
View Full Code Here

  @SuppressWarnings("unchecked")
  public <T> List<T> getBeansOfType( ResolvableType resolvableType, boolean includeModuleInternals ) {
    Set<T> beans = new LinkedHashSet<>();
    ModuleBeanOrderComparator comparator = new ModuleBeanOrderComparator();

    DependencyDescriptor dd = new ResolvableTypeDescriptor( resolvableType );
    ResolvableTypeAutowireCandidateResolver resolver = new ResolvableTypeAutowireCandidateResolver();
    AcrossListableBeanFactory beanFactory = beanFactory( contextInfo.getApplicationContext() );

    resolver.setBeanFactory( beanFactory );
    for ( String beanName : BeanFactoryUtils.beansOfTypeIncludingAncestors( beanFactory,
View Full Code Here

      return Collections.emptySet();
    }

    protected DependencyDescriptor[] getDependencyDescriptor(IAutowireDependencyResolver resolver) {
      if (getMember() instanceof Field) {
        return new DependencyDescriptor[] { new DependencyDescriptor((Field) getMember(), true) };
      }
      else {
        Method method = (Method) this.member;
        Class<?>[] paramTypes = method.getParameterTypes();
        DependencyDescriptor[] descriptors = new DependencyDescriptor[paramTypes.length];

        for (int i = 0; i < paramTypes.length; i++) {
          MethodParameter methodParam = new MethodParameter(method, i);
          descriptors[i] = new DependencyDescriptor(methodParam, true);
        }
        return descriptors;
      }
    }
View Full Code Here

      super(field, null);
      this.required = required;
    }

    protected DependencyDescriptor[] getDependencyDescriptor(IAutowireDependencyResolver resolver) {
      return new DependencyDescriptor[] { new DependencyDescriptor((Field) getMember(), this.required) };
    }
View Full Code Here

      DependencyDescriptor[] descriptors = new DependencyDescriptor[paramTypes.length];

      for (int i = 0; i < paramTypes.length; i++) {
        MethodParameter methodParam = new MethodParameter(method, i);
        GenericTypeResolver.resolveParameterType(methodParam, beanClass);
        descriptors[i] = new DependencyDescriptor(methodParam, this.required);
      }

      return descriptors;
    }
View Full Code Here

      DependencyDescriptor[] descriptors = new DependencyDescriptor[paramTypes.length];

      for (int i = 0; i < paramTypes.length; i++) {
        MethodParameter methodParam = new MethodParameter(method, i);
        GenericTypeResolver.resolveParameterType(methodParam, beanClass);
        descriptors[i] = new DependencyDescriptor(methodParam, this.required);
      }

      return descriptors;
    }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.config.DependencyDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.