javax.enterprise.inject
Class AmbiguousResolutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.enterprise.inject.InjectionException
                  extended by javax.enterprise.inject.ResolutionException
                      extended by javax.enterprise.inject.AmbiguousResolutionException
All Implemented Interfaces:
java.io.Serializable

public class AmbiguousResolutionException
extends ResolutionException

When an injection Manager.getInstance call cannot return a unique bean, it throws this exception. This ambiguity may occur when two subtypes match, e.g. BeanA and BeanB both implementing @Current BeanAPI. The ambiguity may also occur when using more than one @BindingType on the same bean or when using the special @Any bindings, for example:


See Also:
Serialized Form

Constructor Summary
AmbiguousResolutionException()
           
AmbiguousResolutionException(java.lang.String message)
           
AmbiguousResolutionException(java.lang.String message, java.lang.Throwable cause)
           
AmbiguousResolutionException(java.lang.Throwable cause)
           
 
Method Summary
 
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

AmbiguousResolutionException

public AmbiguousResolutionException()

AmbiguousResolutionException

public AmbiguousResolutionException(java.lang.String message)

AmbiguousResolutionException

public AmbiguousResolutionException(java.lang.Throwable cause)

AmbiguousResolutionException

public AmbiguousResolutionException(java.lang.String message,
                                    java.lang.Throwable cause)