Interface OnCamelContextInitializing

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 OnCamelContextInitializing extends OnCamelContextEvent
Event handler invoked while the CamelContext is initializing, before it is started.

Implementations are registered in the Registry and discovered by Camel during bootstrap. This phase runs once, early in the lifecycle, making it a good place for setup that must complete before routes and services are started. For the full set of lifecycle callbacks see OnCamelContextEvent.

See Lifecycle in the Camel user manual.

Since:
3.5
See Also:
  • Method Details

    • onContextInitializing

      void onContextInitializing(CamelContext context)
      Callback invoked while the CamelContext is initializing.
      Parameters:
      context - the camel context