Package io.quarkus.arc.processor
Class ObserverConfigurator
java.lang.Object
io.quarkus.arc.processor.ConfiguratorBase<ObserverConfigurator>
io.quarkus.arc.processor.ObserverConfigurator
- All Implemented Interfaces:
Consumer<org.jboss.jandex.AnnotationInstance>
public final class ObserverConfigurator
extends ConfiguratorBase<ObserverConfigurator>
implements Consumer<org.jboss.jandex.AnnotationInstance>
Configures a synthetic observer.
This construct is not thread-safe.
- See Also:
-
Field Summary
Fields inherited from class io.quarkus.arc.processor.ConfiguratorBase
params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.jboss.jandex.AnnotationInstance qualifier) addQualifier(Class<? extends Annotation> annotationClass) addQualifier(org.jboss.jandex.AnnotationInstance qualifier) addQualifier(org.jboss.jandex.DotName annotationName) async(boolean value) beanClass(org.jboss.jandex.DotName beanClass) voiddone()Forces the observer to be considered an 'application class', so it will be defined in the runtime ClassLoader and re-created on each redeployment.A unique identifier should be used for multiple synthetic observer methods with the same attributes (including the bean class).observedType(Class<?> observedType) observedType(org.jboss.jandex.Type observedType) priority(int priority) qualifiers(org.jboss.jandex.AnnotationInstance... qualifiers) protected ObserverConfiguratorself()transactionPhase(jakarta.enterprise.event.TransactionPhase transactionPhase) Methods inherited from class io.quarkus.arc.processor.ConfiguratorBase
param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, read
-
Constructor Details
-
ObserverConfigurator
-
-
Method Details
-
self
- Overrides:
selfin classConfiguratorBase<ObserverConfigurator>
-
id
A unique identifier should be used for multiple synthetic observer methods with the same attributes (including the bean class).- Parameters:
id-- Returns:
- self
-
beanClass
-
observedType
-
observedType
-
addQualifier
-
addQualifier
-
addQualifier
-
addQualifier
-
qualifiers
-
priority
-
async
-
transactionPhase
public ObserverConfigurator transactionPhase(jakarta.enterprise.event.TransactionPhase transactionPhase) -
notify
-
forceApplicationClass
Forces the observer to be considered an 'application class', so it will be defined in the runtime ClassLoader and re-created on each redeployment. -
done
public void done() -
accept
public void accept(org.jboss.jandex.AnnotationInstance qualifier)
-