Top Description Fields Constructors Methods
org.glassfish.hk2.api

public Class UnsatisfiedDependencyException

extends HK2RuntimeException
Class Inheritance

This exception will be found in a MultiException when a class has a dependency that should be satisfied but cannot be. The specific InjectionPoint that could not be satisfied can be found in the exception.
Author
jwells

Field Summary

Modifier and TypeField and Description
private final transient Injectee
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsatisfiedDependencyException()

Use this if the injectee is unknown

public
UnsatisfiedDependencyException(Injectee
The injectee that is Unsatisfied, or null if the injectee is unknown
injectee
)

Constructs the exception with the given injectee

public
UnsatisfiedDependencyException(Injectee injectee, String serviceLocatorName)

Method Summary

Modifier and TypeMethod and Description
public Injectee

Returns:

The injectee that is unsatisfied
getInjectee
()

Returns the injectee that is unsatisfied

Field Detail

injectionPointback to summary
private final transient Injectee injectionPoint
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.glassfish.hk2.api.HK2RuntimeException.serialVersionUID.

For serialization

Constructor Detail

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException()

Use this if the injectee is unknown

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(Injectee injectee)

Constructs the exception with the given injectee

Parameters
injectee:Injectee

The injectee that is Unsatisfied, or null if the injectee is unknown

UnsatisfiedDependencyExceptionback to summary
public UnsatisfiedDependencyException(Injectee injectee, String serviceLocatorName)

Method Detail

getInjecteeback to summary
public Injectee getInjectee()

Returns the injectee that is unsatisfied

Returns:Injectee

The injectee that is unsatisfied