Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Difference between SCR as well as R6 Annotation.

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Employee Advisor

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.