Interface OnCamelContextStarting

All Superinterfaces:
OnCamelContextEvent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OnCamelContextStarting extends OnCamelContextEvent
Event handler invoked while the CamelContext is starting, before it has fully started.

Implementations are registered in the Registry and discovered by Camel during bootstrap. This callback fires as the context begins starting its routes and services, suiting work that must run just before the context becomes operational. For the full set of lifecycle callbacks see OnCamelContextEvent.

See Lifecycle in the Camel user manual.

Since:
3.5
See Also:
  • Method Details

    • onContextStarting

      void onContextStarting(CamelContext context)
      Callback invoked while the CamelContext is starting.
      Parameters:
      context - the camel context