Package io.quarkus.spring.di.deployment
Class SpringDIProcessor
- java.lang.Object
-
- io.quarkus.spring.di.deployment.SpringDIProcessor
-
public class SpringDIProcessor extends Object
A simple processor that maps Spring DI annotations to CDI annotations. Arc's handling of annotation mapping (by creating an extra abstraction layer on top of the Jandex index) suits this sort of handling perfectly.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.jboss.jandex.DotNameSPRING_COMPONENT(package private) static org.jboss.jandex.DotNameSPRING_REPOSITORY(package private) static org.jboss.jandex.DotNameSPRING_SERVICE
-
Constructor Summary
Constructors Constructor Description SpringDIProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AnnotationsTransformerBuildItembeanTransformer(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem, io.quarkus.deployment.annotations.BuildProducer<StereotypeRegistrarBuildItem> stereotypeRegistrarProducer)(package private) SpringBeanNameToDotNameBuildItemcreateBeanNamesMap(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem)(package private) Set<org.jboss.jandex.AnnotationInstance>getAnnotationsToAdd(org.jboss.jandex.AnnotationTarget target, Map<org.jboss.jandex.DotName,Set<org.jboss.jandex.DotName>> stereotypeScopes, List<org.jboss.jandex.DotName> allArcScopes)Map spring annotations from an annotated class to equivalent CDI annotations(package private) Map<org.jboss.jandex.DotName,Set<org.jboss.jandex.DotName>>getStereotypeScopes(org.jboss.jandex.IndexView index)(package private) io.quarkus.deployment.builditem.FeatureBuildItemregisterFeature()
-
-
-
Method Detail
-
registerFeature
io.quarkus.deployment.builditem.FeatureBuildItem registerFeature()
-
createBeanNamesMap
SpringBeanNameToDotNameBuildItem createBeanNamesMap(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem)
-
beanTransformer
AnnotationsTransformerBuildItem beanTransformer(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem, io.quarkus.deployment.annotations.BuildProducer<StereotypeRegistrarBuildItem> stereotypeRegistrarProducer)
-
getStereotypeScopes
Map<org.jboss.jandex.DotName,Set<org.jboss.jandex.DotName>> getStereotypeScopes(org.jboss.jandex.IndexView index)
- Parameters:
index- An index view of the archive including all the spring classes- Returns:
- A map of any spring annotations extending @Component which will function like CDI stereotypes to any scopes it, or any of its stereotypes declared.
-
getAnnotationsToAdd
Set<org.jboss.jandex.AnnotationInstance> getAnnotationsToAdd(org.jboss.jandex.AnnotationTarget target, Map<org.jboss.jandex.DotName,Set<org.jboss.jandex.DotName>> stereotypeScopes, List<org.jboss.jandex.DotName> allArcScopes)
Map spring annotations from an annotated class to equivalent CDI annotations- Parameters:
target- The annotated classstereotypeScopes- A map on spring stereotype classes to all the scopes they, or any of their stereotypes (etc.) declare- Returns:
- The CDI annotations to add to the class
-
-