Package io.quarkus.arc.processor
Class BeanProcessor
- java.lang.Object
-
- io.quarkus.arc.processor.BeanProcessor
-
public class BeanProcessor extends Object
An integrator should create a new instance of the bean processor using the convenientBeanProcessor.Builderand then invoke the "processing" methods in the following order:registerCustomContexts()registerScopes()registerBeans()#initialize(Consumer)validate(Consumer)processValidationErrors(io.quarkus.arc.processor.BeanDeploymentValidator.ValidationContext)#generateResources(ReflectionRegistration, Set, Consumer)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanProcessor.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Predicate<org.jboss.jandex.DotName>injectionPointAnnotationsPredicate
-
Method Summary
-
-
-
Field Detail
-
injectionPointAnnotationsPredicate
protected final Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate
-
-
Method Detail
-
builder
public static BeanProcessor.Builder builder()
-
registerCustomContexts
public ContextRegistrar.RegistrationContext registerCustomContexts()
-
registerScopes
public void registerScopes()
-
registerBeans
public BeanRegistrar.RegistrationContext 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
public ObserverRegistrar.RegistrationContext 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
public void processValidationErrors(BeanDeploymentValidator.ValidationContext validationContext)
-
generateResources
public List<ResourceOutput.Resource> generateResources(ReflectionRegistration reflectionRegistration, Set<String> existingClasses, Consumer<BytecodeTransformer> bytecodeTransformerConsumer, boolean detectUnusedFalsePositives, ExecutorService executor) throws IOException, InterruptedException, ExecutionException
-
getBeanDeployment
public BeanDeployment getBeanDeployment()
-
getAnnotationLiteralProcessor
public AnnotationLiteralProcessor getAnnotationLiteralProcessor()
-
process
public BeanDeployment process() throws IOException, InterruptedException, ExecutionException
-
getInjectionPointAnnotationsPredicate
public Predicate<org.jboss.jandex.DotName> getInjectionPointAnnotationsPredicate()
-
-