SCR annotations to OSGI DS annotations

Avatar

Avatar

ashwiniv5325199

Avatar

ashwiniv5325199

ashwiniv5325199

19-09-2018

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

Replies

Avatar

Avatar

Ratna_Kumar

MVP

Avatar

Ratna_Kumar

MVP

Ratna_Kumar
MVP

19-09-2018

Hi Ashwini,

Please have a look in the below video which discuses, how to use DS annotations in place of SCR annotations.

Scott's Digital Community: Learn how to use DS Annotations and Inject a custom AEM Service into a Cu...

Official OSGi Declarative Services Annotations in AEM - Adobe Experience Manager | AEM/CQ | Apache S...

Hope this helps!!

Thanks,

Ratna Kumar.