SCR annotation VS ds Annotation(OSGI annotation):
"First change is that @Service and @Component are now combined, via service you specify which service you are implementing @Component(service = MySimpleService.class)"
What does it mean now to declare any component as a service there is no need of using @service annotation?
I found somewhere this in net
Migration of OSGi Components and Service
Before : In SCR Annotations:
@Component(name=”Test Service”,immediate=true,description="this is description")@Service(TestService.class) public class TestService { public String getName() { return "testService"; } } |
After:In OSGi Annotations@Component(name=”Test Service” service=TestService.class,immediate=true)public class TestService { public String getName() { return "testService"; } } |