Difference between SCR as well as R6 Annotation.

Avatar

Avatar

kusumam24182037

Avatar

kusumam24182037

kusumam24182037

12-08-2019

Hi Team,

Which developing the OSGI component i can use both scr annotation as well as R6 Annotation.

Then What is difference between in terms of development of OSGI component

What and all new features added in the R6 Annotation.

Regards

Kusuma.

Answers (1)

Answers (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

952

Correct Reply

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

952

Correct Reply

1.0K
Jörg_Hoh
Employee

12-08-2019

These annotations are compile time annotations, which are handled by maven plugins. These plugins create metadata (same format) which are the picked up during runtime. That means that the same runtime can handle both SCR and OSGI annotations if they follow the same spec (which they do).

OSGI r6 and SCR are pretty much at the same level, but the future development will happen only on OSGI annotations.