Package org.springframework.core

Examples of org.springframework.core.ParameterNameDiscoverer


        List<ParameterNameDiscoverer> discoverers = (List<ParameterNameDiscoverer>) ReflectionTestUtils
                .getField(discoverer, "parameterNameDiscoverers");

        assertThat(discoverers.size()).isEqualTo(2);

        ParameterNameDiscoverer annotationDisc = discoverers.get(0);
        assertThat(annotationDisc).isInstanceOf(
                AnnotationParameterNameDiscoverer.class);
        Set<String> annotationsToUse = (Set<String>)ReflectionTestUtils.getField(annotationDisc, "annotationClassesToUse");
        assertThat(annotationsToUse).containsOnly(P.class.getName());
View Full Code Here


        assertThat(discoverers.size()).isEqualTo(3);
        assertThat(discoverers.get(0)).isInstanceOf(
                LocalVariableTableParameterNameDiscoverer.class);

        ParameterNameDiscoverer annotationDisc = discoverers.get(1);
        assertThat(annotationDisc).isInstanceOf(
                AnnotationParameterNameDiscoverer.class);
        Set<String> annotationsToUse = (Set<String>)ReflectionTestUtils.getField(annotationDisc, "annotationClassesToUse");
        assertThat(annotationsToUse).containsOnly(P.class.getName());
View Full Code Here

        List<ParameterNameDiscoverer> discoverers = (List<ParameterNameDiscoverer>) ReflectionTestUtils
                .getField(discoverer, "parameterNameDiscoverers");

        assertThat(discoverers.size()).isEqualTo(2);

        ParameterNameDiscoverer annotationDisc = discoverers.get(0);
        assertThat(annotationDisc).isInstanceOf(
                AnnotationParameterNameDiscoverer.class);
        Set<String> annotationsToUse = (Set<String>)ReflectionTestUtils.getField(annotationDisc, "annotationClassesToUse");
        assertThat(annotationsToUse).containsOnly(P.class.getName());
View Full Code Here

        assertThat(discoverers.size()).isEqualTo(3);
        assertThat(discoverers.get(0)).isInstanceOf(
                LocalVariableTableParameterNameDiscoverer.class);

        ParameterNameDiscoverer annotationDisc = discoverers.get(1);
        assertThat(annotationDisc).isInstanceOf(
                AnnotationParameterNameDiscoverer.class);
        Set<String> annotationsToUse = (Set<String>)ReflectionTestUtils.getField(annotationDisc, "annotationClassesToUse");
        assertThat(annotationsToUse).containsOnly(P.class.getName());
View Full Code Here

            String[] paramNames = null;
            if (constructorPropertiesAnnotationAvailable) {
              paramNames = ConstructorPropertiesChecker.evaluateAnnotation(candidate, paramTypes.length);
            }
            if (paramNames == null) {
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
            }
            argsHolder = createArgumentArray(
                beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
          }
View Full Code Here

          if (resolvedValues != null) {
            // Resolved constructor arguments: type conversion and/or autowiring necessary.
            try {
              String[] paramNames = null;
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
              argsHolder = createArgumentArray(
                  beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
            }
            catch (UnsatisfiedDependencyException ex) {
View Full Code Here

            String[] paramNames = null;
            if (constructorPropertiesAnnotationAvailable) {
              paramNames = ConstructorPropertiesChecker.evaluateAnnotation(candidate, paramTypes.length);
            }
            if (paramNames == null) {
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
            }
            args = createArgumentArray(
                beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
          }
View Full Code Here

          if (resolvedValues != null) {
            // Resolved constructor arguments: type conversion and/or autowiring necessary.
            try {
              String[] paramNames = null;
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
              args = createArgumentArray(
                  beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
            }
            catch (UnsatisfiedDependencyException ex) {
View Full Code Here

        ArgumentsHolder argsHolder;
        if (resolvedValues != null) {
          try {
            String[] paramNames = ConstructorPropertiesChecker.evaluate(candidate, paramTypes.length);
            if (paramNames == null) {
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
            }
            argsHolder = createArgumentArray(
                beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
          }
View Full Code Here

          if (resolvedValues != null) {
            // Resolved constructor arguments: type conversion and/or autowiring necessary.
            try {
              String[] paramNames = null;
              ParameterNameDiscoverer pnd = this.beanFactory.getParameterNameDiscoverer();
              if (pnd != null) {
                paramNames = pnd.getParameterNames(candidate);
              }
              argsHolder = createArgumentArray(
                  beanName, mbd, resolvedValues, bw, paramTypes, paramNames, candidate, autowiring);
            }
            catch (UnsatisfiedDependencyException ex) {
View Full Code Here

TOP

Related Classes of org.springframework.core.ParameterNameDiscoverer

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.