Adobe-Marketing-Cloud / aem-guides

AEM Guides contains multiple AEM Maven projects that are code companions for a corresponding tutorial found on helpx.adobe.com
https://helpx.adobe.com/experience-manager/kt/index/aem-6-3-videos.html
74 stars 80 forks source link

Simple Search with new OSGI R6 annotation #21

Open peacefulwarrior08 opened 5 years ago

peacefulwarrior08 commented 5 years ago

Affected guide

I am trying to integrate simple search in my AEM 6.3.3 instance. We are using the latest OSGI R6 annotations and this codebase has SCR annotations.

It would be helpful if you can provide R6 compatible PredicateResolverImpl code. The current code uses scr annotations and fields which are not available in R6.

For example: @References referenceInterface not supported in R6

@Component @References({ @Reference( referenceInterface = PredicateFactory.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE) })

Akuyi commented 5 years ago

Hi, is there a solution for this? I'm facing the same issue while migrating to 6.5