Top Description Fields Constructors Methods
org.springframework.beans.factory

public Class UnsatisfiedDependencyException

extends BeanCreationException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.BeansException, org.springframework.lang.Nullable, org.springframework.util.StringUtils

Exception thrown when a bean depends on other beans or simple properties that were not specified in the bean factory definition, although dependency checking was enabled.
Authors
Rod Johnson, Juergen Hoeller
Since
03.09.2003

Field Summary

Modifier and TypeField and Description
private final InjectionPoint

Constructor Summary

AccessConstructor and Description
public
UnsatisfiedDependencyException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
String
the name of the bean property that couldn't be satisfied
propertyName
,
String
the detail message
msg
)

Create a new UnsatisfiedDependencyException.

public
UnsatisfiedDependencyException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
String
the name of the bean property that couldn't be satisfied
propertyName
,
BeansException
the bean creation exception that indicated the unsatisfied dependency
ex
)

Create a new UnsatisfiedDependencyException.

public
UnsatisfiedDependencyException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
InjectionPoint
the injection point (field or method/constructor parameter)
injectionPoint
,
String
the detail message
msg
)

Create a new UnsatisfiedDependencyException.

public
UnsatisfiedDependencyException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean requested
beanName
,
InjectionPoint
the injection point (field or method/constructor parameter)
injectionPoint
,
BeansException
the bean creation exception that indicated the unsatisfied dependency
ex
)

Create a new UnsatisfiedDependencyException.

Method Summary

Modifier and TypeMethod and Description
public InjectionPoint
getInjectionPoint()

Return the injection point (field or method/constructor parameter), if known.

Inherited from org.springframework.beans.factory.BeanCreationException:
addRelatedCausecontainsgetBeanNamegetRelatedCausesgetResourceDescriptionprintStackTraceprintStackTracetoString

Field Detail

injectionPointback to summary
private final InjectionPoint injectionPoint
Annotations
@Nullable

Constructor Detail

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(String resourceDescription, String beanName, String propertyName, String msg)

Create a new UnsatisfiedDependencyException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

propertyName:String

the name of the bean property that couldn't be satisfied

msg:String

the detail message

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(String resourceDescription, String beanName, String propertyName, BeansException ex)

Create a new UnsatisfiedDependencyException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

propertyName:String

the name of the bean property that couldn't be satisfied

ex:BeansException

the bean creation exception that indicated the unsatisfied dependency

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(String resourceDescription, String beanName, InjectionPoint injectionPoint, String msg)

Create a new UnsatisfiedDependencyException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

injectionPoint:InjectionPoint

the injection point (field or method/constructor parameter)

msg:String

the detail message

Since
4.3
UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(String resourceDescription, String beanName, InjectionPoint injectionPoint, BeansException ex)

Create a new UnsatisfiedDependencyException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean requested

injectionPoint:InjectionPoint

the injection point (field or method/constructor parameter)

ex:BeansException

the bean creation exception that indicated the unsatisfied dependency

Since
4.3

Method Detail

getInjectionPointback to summary
public InjectionPoint getInjectionPoint()

Return the injection point (field or method/constructor parameter), if known.

Annotations
@Nullable
Since
4.3