org.jvnet.hk2.component
Class UnsatisfiedDepedencyException

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.UnsatisfiedDepedencyException
All Implemented Interfaces:
java.io.Serializable

public class UnsatisfiedDepedencyException
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
UnsatisfiedDepedencyException(java.lang.reflect.Field target)
           
UnsatisfiedDepedencyException(java.lang.reflect.Field target, java.lang.Throwable cause)
           
UnsatisfiedDepedencyException(java.lang.reflect.Method target)
           
UnsatisfiedDepedencyException(java.lang.reflect.Method 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 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

UnsatisfiedDepedencyException

public UnsatisfiedDepedencyException(java.lang.reflect.Field target)

UnsatisfiedDepedencyException

public UnsatisfiedDepedencyException(java.lang.reflect.Field target,
                                     java.lang.Throwable cause)

UnsatisfiedDepedencyException

public UnsatisfiedDepedencyException(java.lang.reflect.Method target)

UnsatisfiedDepedencyException

public UnsatisfiedDepedencyException(java.lang.reflect.Method 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 © 2009 Sun Microsystems, Inc.. All Rights Reserved.