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
Exception thrown by the injection manager when a dependency is not satisfied when
performing injection.
- Author:
- Jerome Dochez
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject) UnsatisfiedDependencyException(AnnotatedElement target, Annotation inject, Throwable cause) UnsatisfiedDependencyException(Type target, Class<?> targetClass, Annotation inject, Throwable cause) -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class<T> annotationType) booleanisField()booleanisMethod()Methods inherited from class org.jvnet.hk2.config.ConfigurationException
getLocation, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsatisfiedDependencyException
Deprecated. -
UnsatisfiedDependencyException
-
UnsatisfiedDependencyException
-
UnsatisfiedDependencyException
public UnsatisfiedDependencyException(Type target, Class<?> targetClass, Annotation inject, Throwable cause)
-
-
Method Details
-
isField
public boolean isField() -
isMethod
public boolean isMethod() -
getUnsatisfiedName
-
getUnsatisfiedElement
-
getAnnotation
-