Class DependencyInjectionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CircularDependencyException

public class DependencyInjectionException extends BeanCreationException
Represents a runtime failure to perform dependency injection.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Constructor Details

    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      argument - The argument
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, String message, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      message - The message
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, String message)
      Parameters:
      resolutionContext - The resolution context
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, String message)
      Parameters:
      resolutionContext - The resolution context
      argument - The argument
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      fieldInjectionPoint - The field injection point
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      declaringBean - The declaring type
      fieldName - The field name
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message)
      Parameters:
      resolutionContext - The resolution context
      fieldInjectionPoint - The field injection point
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message)
      Parameters:
      resolutionContext - The resolution context
      declaringBean - The declaring bean
      fieldName - The field name
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      fieldInjectionPoint - The field injection point
      message - The message
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      declaringBean - The declaring bean
      fieldName - The field name
      message - The message
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      methodInjectionPoint - The method injection point
      argument - The argument
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      declaringType - The declaring type
      methodName - The method name
      argument - The argument
      cause - The throwable
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message)
      Parameters:
      resolutionContext - The resolution context
      methodInjectionPoint - The method injection point
      argument - The argument
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message)
      Parameters:
      resolutionContext - The resolution context
      declaringType - The declaring type
      methodName - The method name
      argument - The argument
      message - The message
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, ArgumentConversionContext argumentConversionContext, String property)
      Builds an error message for attempted argument conversion on a argument.
      Parameters:
      resolutionContext - The resolution context
      argumentConversionContext - The argument conversion context
      property - The property being resolved
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, ArgumentConversionContext conversionContext, String property)
      Builds an error message for attempted argument conversion on a method.
      Parameters:
      resolutionContext - The resolution context
      methodInjectionPoint - The method injection point
      conversionContext - The conversion context
      property - The property being resolved
    • DependencyInjectionException

      public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String methodName, ArgumentConversionContext conversionContext, String property)
      Builds an error message for attempted argument conversion on a method.
      Parameters:
      resolutionContext - The resolution context
      declaringBean - The declaring bean
      methodName - The method name
      conversionContext - The conversion context
      property - The property being resolved
    • DependencyInjectionException

      protected DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message, boolean circular)
      Parameters:
      resolutionContext - The resolution context
      methodInjectionPoint - The method injection point
      argument - The argument
      message - The message
      circular - Is the path circular
    • DependencyInjectionException

      protected DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message, boolean circular)
      Parameters:
      resolutionContext - The resolution context
      declaringType - The method declaring type
      methodName - The method name
      argument - The argument
      message - The message
      circular - Is the path circular
    • DependencyInjectionException

      protected DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, boolean circular)
      Parameters:
      resolutionContext - The resolution context
      fieldInjectionPoint - The field injection point
      message - The message
      circular - Is the path circular
    • DependencyInjectionException

      protected DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String fieldName, String message, boolean circular)
      Parameters:
      resolutionContext - The resolution context
      declaringType - The field declaringType
      fieldName - The field name
      message - The message
      circular - Is the path circular
    • DependencyInjectionException

      protected DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, String message, boolean circular)
      Parameters:
      resolutionContext - The resolution context
      argument - The argument
      message - The message
      circular - Is the path circular
  • Method Details