6 Replies Latest reply on Nov 3, 2013 6:52 AM by htfv

    How to make a class invisible to Errai IOC container

    htfv

      Hello everyone!

       

      I'm setting up a project (prototype) where I wanted to use GWTP and Errai UI.

      • Because Errai UI depends on Errai IOC/CDI, it scans all classes to build a bootstrapper.
      • GWTP contains a @Singleton with a non-public constructor.
      • The generated bootstrapper may not be compiled, because GWTP class may not be instantiated with new.

       

      I thought that only classpaths, which have ErraiApp.properties in the root are scanned. Why is GWTP scanned at all? Is it possible to exclude some classes from the scanning?

       

      Regards,

      htfv (Aliaksei Lahachou)