public class AmbiguousResolutionException extends ResolutionException
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:
Constructor and Description |
---|
AmbiguousResolutionException() |
AmbiguousResolutionException(java.lang.String message) |
AmbiguousResolutionException(java.lang.String message,
java.lang.Throwable cause) |
AmbiguousResolutionException(java.lang.Throwable cause) |
public AmbiguousResolutionException()
public AmbiguousResolutionException(java.lang.String message)
public AmbiguousResolutionException(java.lang.Throwable cause)
public AmbiguousResolutionException(java.lang.String message, java.lang.Throwable cause)