Package org.jvnet.hk2.config
Class UnsatisfiedDependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.hk2.api.HK2RuntimeException
-
- org.jvnet.hk2.config.ConfigurationException
-
- org.jvnet.hk2.config.UnsatisfiedDependencyException
-
- All Implemented Interfaces:
Serializable
public class UnsatisfiedDependencyException extends ConfigurationException
Exception thrown by the injection manager when a dependency is not satisfied when performing injection.- Author:
- Jerome Dochez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsatisfiedDependencyException(AnnotatedElement target)
Deprecated.UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject)
UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject, Throwable cause)
UnsatisfiedDependencyException(Type target, Class<?> targetClass, Annotation inject, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationType)
AnnotatedElement
getUnsatisfiedElement()
String
getUnsatisfiedName()
boolean
isField()
boolean
isMethod()
-
Methods inherited from class org.jvnet.hk2.config.ConfigurationException
getLocation, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(AnnotatedElement target)
Deprecated.
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject)
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject, Throwable cause)
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(Type target, Class<?> targetClass, Annotation inject, Throwable cause)
-
-
Method Detail
-
isField
public boolean isField()
-
isMethod
public boolean isMethod()
-
getUnsatisfiedName
public String getUnsatisfiedName()
-
getUnsatisfiedElement
public AnnotatedElement getUnsatisfiedElement()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
-
-