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.
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 Summary
Modifier and TypeMethodDescriptionvoidonContextInitializing(CamelContext context) Callback invoked while theCamelContextis initializing.
-
Method Details
-
onContextInitializing
Callback invoked while theCamelContextis initializing.- Parameters:
context- the camel context
-