Hi all, Previously we were using Spring DM to perform dependencies injections and services declaration, and now we would like to migrate to OSGI declarative services/SCR. May I know is there any ways to perform:
1. bean wiring/dependency injection for SCR like Spring DM does? For example: * @line1: We want to expose "myService" as a service. (This should be achievable by using @Component, @Service, correct me if I am wrong) * @line7: We want to inject "serviceRegistry" dependency to "myService". * Note: "serviceRegistry" is a normal bean class, which does NOT expose as a service. [cid:image002.png@01D1AF66.E10F5B20] 2. Reading properties from a configuration file and binding them into service? For example a. There is a configuration file: service.config with following properties: # service type service.type = A And we are declaring the service such a way in Spring DM: (the service that going to be registered is based on the "service.type" value in the config file). Is this doable in OSGI declarative services? [cid:image001.png@01D1AF67.1B06AE50] Thank you so much for your time. Best regards, Kim
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev