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

SCR annotations to OSGI DS annotations

ashwiniv5325199
Level 2
Level 2

Hi Team,

             How to convert SCR annotations of a Class which implements JOB EXECUTOR into OSGI DS annotations.

Please suggest me

Example:

@Component(label = SampleJobExecutor.NAME, description = Sample.DESCRIPTION, immediate = true)

@Properties({

@Property(label = Sample.PROP_LABEL, value = SampleConstants.JOB_TYPE, description = Sample.PROP_DESC, name = JobConsumer.PROPERTY_TOPICS, propertyPrivate = true) })

@Service

public class SampleJobExecutor implements JobExecutor {

///////........

}

Thanks

Ashwini V

1 Reply