1 Reply Latest reply on Aug 3, 2017 11:07 AM by Max Barkley

    Question about the CDI declaration.

    Ben Dol Newbie

      Hi, I have a quick question about the CDI scope declarations. If I declare an AbstractClass @Dependent and use this class as a base class, will the inheriting class be defined as dependent?



        • 1. Re: Question about the CDI declaration.
          Max Barkley Expert

          Hi Ben,


          Sorry for the delayed response. In theory that should work as scopes are @Inherited, but I don't think we have a test case for this so I'm not sure if it works as expected in Errai. That being said, all beans are @Dependent when no explicit scope exists so it might not be necessary for you to mark your abstract base class as dependent if you are not dynamically looking up its subtypes.