public interface ExtendedStartupListener extends StartupListener
StartupListener that is invoked when the CamelContext is fully started.
Important: You can use this listener to add and start new routes to the CamelContext which is now supported.StartupListener| Modifier and Type | Method and Description |
|---|---|
void |
onCamelContextFullyStarted(CamelContext context,
boolean alreadyStarted)
Callback invoked when the
CamelContext has been fully started. |
onCamelContextStartedvoid onCamelContextFullyStarted(CamelContext context, boolean alreadyStarted) throws Exception
CamelContext has been fully started.context - the Camel contextalreadyStarted - whether or not the CamelContext already has been started. For example the context
could already have been started, and then a service is added/started later which still
triggers this callback to be invoked.Exception - can be thrown in case of errors to fail the startup process and have the application
fail on startup.Apache Camel