1 Reply Latest reply on Jun 15, 2012 5:07 PM by Mike Brock

    IOCBeanManager doesn't find concrete classes extending Abstract

    Michael Anstis Newbie

      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