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

R6 Annotaion

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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