R6 Annotaion

Avatar

Avatar

mjb54261515

Avatar

mjb54261515

mjb54261515

09-04-2019

When using R6 annotation for a service

import org.osgi.service.component.annotations.Component;

import org.osgi.service.component.annotations.ConfigurationPolicy;

@Component(service = SampleService.class, immediate = true, configurationPolicy = ConfigurationPolicy.REQUIRE)

public class SampleServiceImpl implements SampleService{ }

How do I add label and description for the service.

Please suggest

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

09-04-2019

Use   property = {"process.label=something" }

@Component(immediate = true, property = { "process.label=mylabel", "process.description=mydesc" })

check-

AEM Developer Learning : Migration of SCR annotations to OSGi R6 annotations in AEM 6.3

Answers (0)