Migration of SCR annotations to OSGi R6 annotations in AEM 6.3
I am migrating some SCR annotations based code base to OSGi R6.
The current code uses scr annotations and fields which are not available in R6.
For example: @references and referenceInterface are not supported in R6
@Component
@References({
@Reference(
referenceInterface = SomeFactory.class,
policy = ReferencePolicy.DYNAMIC,
cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE)
})
@Service
public class SomeResolverImpl implements SomeResolver { }