This post talks about creating Configuration Factory service using OSGI R6 annotations. In order to create this service we need to create a Service Interface and Implementation class.
Let's create a interface to define the configurations
Let's create a interface to define the configurations
package com.aemquickstart.core.interfaces; import org.osgi.service.metatype.annotations.AttributeDefinition; import org.osgi.service.metatype.annotations.ObjectClassDefinition; @ObjectClassDefinition(name = "AEM Quickstart Site Configs") public @interface SiteConfigs { @AttributeDefinition(name="Site Id", description="Site ID") String getSiteId() default "aemquickstart"; @AttributeDefinition(name="Site Name", description="Site Name") String getSiteName() default "AEM Quickstart"; }