Search in sources :

Example 1 with QualifierRegistrarBuildItem

use of io.quarkus.arc.deployment.QualifierRegistrarBuildItem in project camel-quarkus by apache.

the class InjectionPointsProcessor method qualifierRegistrars.

@BuildStep
void qualifierRegistrars(BuildProducer<QualifierRegistrarBuildItem> qualifierRegistrars) {
    qualifierRegistrars.produce(new QualifierRegistrarBuildItem(new QualifierRegistrar() {

        @Override
        public Map<DotName, Set<String>> getAdditionalQualifiers() {
            Map<DotName, Set<String>> result = new LinkedHashMap<DotName, Set<String>>();
            result.put(ENDPOINT_INJECT_ANNOTATION, Collections.emptySet());
            result.put(PRODUCE_ANNOTATION, Collections.emptySet());
            return Collections.unmodifiableMap(result);
        }
    }));
}
Also used : HashSet(java.util.HashSet) Set(java.util.Set) QualifierRegistrar(io.quarkus.arc.processor.QualifierRegistrar) QualifierRegistrarBuildItem(io.quarkus.arc.deployment.QualifierRegistrarBuildItem) DotName(org.jboss.jandex.DotName) LinkedHashMap(java.util.LinkedHashMap) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

QualifierRegistrarBuildItem (io.quarkus.arc.deployment.QualifierRegistrarBuildItem)1 QualifierRegistrar (io.quarkus.arc.processor.QualifierRegistrar)1 BuildStep (io.quarkus.deployment.annotations.BuildStep)1 HashSet (java.util.HashSet)1 LinkedHashMap (java.util.LinkedHashMap)1 Set (java.util.Set)1 DotName (org.jboss.jandex.DotName)1