I work with the OSGi-Apache karaf + Apache Felix technology stack. The project consists of spaghetti code. I am trying to refactor, correct, improve. But with OSGi faced for the first time.
What I want to do:
Use singletons, as in @Autowired. Is there something similar in OSGi?
use Repository or DAO pattern, as in the spring. Is there such a thing in OSGi?
I must say that I tried to associate with the spring but nothing happened. I tried following the example of Habra, but I started the example, but I could not embed it into the working project
If there is no singleton implementation, maybe just use a regular pattern and write your own?
I have a native sql, bare queries, and no ORMok.