Creating custom injectable classes

The injection framework in E4 allows custom injectable classes and services. As well as registering OSGi services, POJOs can be defined and instantiated on demand.

The rules for allowing a type to be instantiated automatically are:

  • It must be a non-abstract class
  • It must have a non-private default constructor
  • It must be annotated with @Creatable
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.171.58