org.jvnet.hk2.component
Class UnsatisfiedDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.hk2.ComponentException
org.jvnet.hk2.component.ComponentException
org.jvnet.hk2.component.UnsatisfiedDependencyException
- All Implemented Interfaces:
- Serializable
public class UnsatisfiedDependencyException
- extends ComponentException
Exception thrown by the injection manager when a dependency is not satisfied when
performing injection.
- Author:
- Jerome Dochez
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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)
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)
Copyright © 2011 Oracle Corporation. All Rights Reserved.