Package io.quarkus.arc.processor
Class BeanProcessor
java.lang.Object
io.quarkus.arc.processor.BeanProcessor
An integrator should create a new instance of the bean processor using the convenient
BeanProcessor.Builder and then invoke the
"processing" methods in the following order:
registerCustomContexts()registerScopes()registerBeans()BeanDeployment.initBeanByTypeMap()registerSyntheticObservers()initialize(Consumer, List)validate(Consumer)processValidationErrors(io.quarkus.arc.processor.BeanDeploymentValidator.ValidationContext)generateResources(ReflectionRegistration, Set, Consumer, boolean, ExecutorService)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BeanProcessor.Builderbuilder()generateResources(ReflectionRegistration reflectionRegistration, Set<String> existingClasses, Consumer<BytecodeTransformer> bytecodeTransformerConsumer, boolean detectUnusedFalsePositives, ExecutorService executor) Predicate<org.jboss.jandex.DotName> voidinitialize(Consumer<BytecodeTransformer> bytecodeTransformerConsumer, List<Predicate<BeanInfo>> additionalUnusedBeanExclusions) process()voidprocessValidationErrors(BeanDeploymentValidator.ValidationContext validationContext) Analyze the deployment and register all beans and observers declared on the classes.voidvalidate(Consumer<BytecodeTransformer> bytecodeTransformerConsumer)
-
Field Details
-
injectionPointAnnotationsPredicate
-
-
Method Details
-
builder
-
registerCustomContexts
-
registerScopes
public void registerScopes() -
registerBeans
Analyze the deployment and register all beans and observers declared on the classes. Furthermore, register all synthetic beans provided by bean registrars.- Returns:
- the context applied to
BeanRegistrar
-
registerSyntheticObservers
-
initialize
public void initialize(Consumer<BytecodeTransformer> bytecodeTransformerConsumer, List<Predicate<BeanInfo>> additionalUnusedBeanExclusions) - Parameters:
bytecodeTransformerConsumer- Used to register a bytecode transformationadditionalUnusedBeanExclusions- Additional predicates to exclude unused beans
-
validate
public BeanDeploymentValidator.ValidationContext validate(Consumer<BytecodeTransformer> bytecodeTransformerConsumer) - Parameters:
bytecodeTransformerConsumer- Used to register a bytecode transformation- Returns:
- the validation context
-
processValidationErrors
-
generateResources
public List<ResourceOutput.Resource> generateResources(ReflectionRegistration reflectionRegistration, Set<String> existingClasses, Consumer<BytecodeTransformer> bytecodeTransformerConsumer, boolean detectUnusedFalsePositives, ExecutorService executor) throws IOException, InterruptedException, ExecutionException -
getBeanDeployment
-
getAnnotationLiteralProcessor
-
process
-
getInjectionPointAnnotationsPredicate
-