org.jvnet.hk2.component
Class UnsatisfiedDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jvnet.hk2.component.ComponentException
                  extended by org.jvnet.hk2.component.UnsatisfiedDependencyException
All Implemented Interfaces:
java.io.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

Constructor Summary
UnsatisfiedDependencyException(java.lang.reflect.AnnotatedElement target)
           
UnsatisfiedDependencyException(java.lang.reflect.AnnotatedElement target, java.lang.Throwable cause)
           
UnsatisfiedDependencyException(java.lang.reflect.Field target, java.lang.Throwable cause)
           
 
Method Summary
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType)
           
 java.lang.reflect.AnnotatedElement getUnsatisfiedElement()
           
 java.lang.String getUnsatisfiedName()
           
 boolean isField()
           
 boolean isMethod()
           
 
Methods inherited from class org.jvnet.hk2.component.ComponentException
getFailureContext
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsatisfiedDependencyException

public UnsatisfiedDependencyException(java.lang.reflect.AnnotatedElement target)

UnsatisfiedDependencyException

public UnsatisfiedDependencyException(java.lang.reflect.AnnotatedElement target,
                                      java.lang.Throwable cause)

UnsatisfiedDependencyException

public UnsatisfiedDependencyException(java.lang.reflect.Field target,
                                      java.lang.Throwable cause)
Method Detail

isField

public boolean isField()

isMethod

public boolean isMethod()

getUnsatisfiedName

public java.lang.String getUnsatisfiedName()

getUnsatisfiedElement

public java.lang.reflect.AnnotatedElement getUnsatisfiedElement()

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)


Copyright © 2011 Oracle Corporation. All Rights Reserved.