I have functionality common to multiple screen controllers, so I decided to make a new package in the web module, i.e. com.mycompany.abc.web.utils, and a new class MyClass.java in this package.
I would like to Inject some of my Middleware Services, and ExportDisplay in MyClass, but injected elements are null. Is the only way of doing this to register MyClass as JavaBean and making it a singleton?
Or is it possible to inject in my plain class?
Thank you for your help!