You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/12/16 09:57:32 UTC

[GitHub] [camel-quarkus] lburgazzoli commented on issue #2074: How to use CamelContextCustomizer ?

lburgazzoli commented on issue #2074:
URL: https://github.com/apache/camel-quarkus/issues/2074#issuecomment-746013526


   You can achieve what you are looking for by listen for a `org.apache.camel.spi.CamelEvent` event, as example:
   
   ```java 
   @ApplicationScoped
   public static class EventHandler {
       public void onRouteStarted(@Observes CamelContextStartingEvent event) {
           doSomething(event.getContext());
       }
   }
   ````


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org