


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
Views
Replies
Sign in to like this content
Total Likes
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
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