Hi,
We use something like this:-
{code}
Collection<IOCBeanDef> beans = iocBeanManager.lookupBeans( Activity.class );
{code}
If I have something like this:-
{code}
Interface Activity {
...
}
public abstract class AbstractMyActivity implements Activity {
...
}
@Dependent
public class MyActivityImpl extends AbstractMyActivity {
...
}
{code}
I find MyActivityImpl is not returned by IOCBeanManager unless I have MyActivityImpl also implement the corresponding interface, Activity, i.e.:-
{code}
@Dependent
public class MyActivityImpl extends AbstractMyActivity implements Activity {
...
}
{code}
Does Errai walk a type's hierachy, or am I doing something wrong?
With kind regards,
Mike
Confirmed and fix going out in SNAPSHOTs soon: https://issues.jboss.org/browse/ERRAI-320