Interface OnCamelContextInitialized

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 OnCamelContextInitialized extends OnCamelContextEvent
Event handler invoked after the CamelContext has been initialized, before it is started.

Implementations are registered in the Registry and discovered by Camel during bootstrap. At this point all routes and services have been initialized but not yet started, so this phase suits inspection or final adjustments that depend on a fully initialized context. For the full set of lifecycle callbacks see OnCamelContextEvent.

See Lifecycle in the Camel user manual.

Since:
3.4
See Also:
  • Method Details

    • onContextInitialized

      void onContextInitialized(CamelContext context)
      Callback invoked after the CamelContext has been initialized.
      Parameters:
      context - the camel context