When an injection {@link javax.enterprise.inject.spi.BeanManager#getInstance Manager.getInstance} call cannot return a unique bean, it throwsthis 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 {@link javax.enterprise.inject.BindingType @BindingType} on the samebean or when using the special {@link javax.enterprise.inject.Any @Any}bindings, for example:
@Foo @A public class Bean {}
@Foo @B public class Bean {}class MyClass {
@Foo Bean _fooField
@Any Bean _anyField}