类 UnsatisfiedDependencyException

    • 构造器详细资料

      • UnsatisfiedDependencyException

        public UnsatisfiedDependencyException​(String resourceDescription,
                                              String beanName,
                                              String propertyName,
                                              String msg)
        Create a new UnsatisfiedDependencyException.
        参数:
        resourceDescription - description of the resource that the bean definition came from
        beanName - the name of the bean requested
        propertyName - the name of the bean property that couldn't be satisfied
        msg - the detail message
      • UnsatisfiedDependencyException

        public UnsatisfiedDependencyException​(String resourceDescription,
                                              String beanName,
                                              String propertyName,
                                              BeansException ex)
        Create a new UnsatisfiedDependencyException.
        参数:
        resourceDescription - description of the resource that the bean definition came from
        beanName - the name of the bean requested
        propertyName - the name of the bean property that couldn't be satisfied
        ex - the bean creation exception that indicated the unsatisfied dependency
      • UnsatisfiedDependencyException

        public UnsatisfiedDependencyException​(String resourceDescription,
                                              String beanName,
                                              InjectionPoint injectionPoint,
                                              String msg)
        Create a new UnsatisfiedDependencyException.
        参数:
        resourceDescription - description of the resource that the bean definition came from
        beanName - the name of the bean requested
        injectionPoint - the injection point (field or method/constructor parameter)
        msg - the detail message
        从以下版本开始:
        4.3
      • UnsatisfiedDependencyException

        public UnsatisfiedDependencyException​(String resourceDescription,
                                              String beanName,
                                              InjectionPoint injectionPoint,
                                              BeansException ex)
        Create a new UnsatisfiedDependencyException.
        参数:
        resourceDescription - description of the resource that the bean definition came from
        beanName - the name of the bean requested
        injectionPoint - the injection point (field or method/constructor parameter)
        ex - the bean creation exception that indicated the unsatisfied dependency
        从以下版本开始:
        4.3
    • 方法详细资料

      • getInjectionPoint

        public InjectionPoint getInjectionPoint()
        Return the injection point (field or method/constructor parameter), if known.
        从以下版本开始:
        4.3