Skip to content

Commit

Permalink
camel-cdi remove deprecated fireEvent method (#13596)
Browse files Browse the repository at this point in the history
CAMEL-20627: remove deprecated BeanManager.fireEvent this will allow the library to be used in also with cdi api 4 after transforming it with eclipse transformer.
  • Loading branch information
mariucojocaru authored and davsclaus committed Mar 28, 2024
1 parent 3a76bb3 commit 4e74223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -412,7 +412,7 @@ private SyntheticBean<?> camelContextBean(BeanManager manager, Class<?> beanClas

private void afterDeploymentValidation(@Observes AfterDeploymentValidation adv, BeanManager manager) {
// Send event for Camel CDI configuration
manager.fireEvent(configuration);
manager.getEvent().fire(configuration);
configuration.unmodifiable();

Collection<CamelContext> contexts = new ArrayList<>();
Expand Down
Expand Up @@ -56,9 +56,9 @@ public void notify(CamelEvent event) {
List<Annotation> annotations = new ArrayList<>();
Collections.addAll(annotations, qualifiers);
annotations.add(NamedLiteral.of(id));
manager.fireEvent(event, annotations.toArray(new Annotation[0]));
manager.getEvent().select(annotations.toArray(new Annotation[0])).fire(event);
} else {
manager.fireEvent(event, qualifiers);
manager.getEvent().select(qualifiers).fire(event);
}
}

Expand Down

0 comments on commit 4e74223

Please sign in to comment.