Package org.apache.camel.main
Interface MainListener
- All Known Implementing Classes:
MainListenerSupport
public interface MainListener
A lifecycle listener to receive callbacks when the Main is started and stopped.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback to configure the created CamelContext.void
afterStart
(BaseMainSupport main) Callback after the CamelContext has been started.void
afterStop
(BaseMainSupport main) Callback after the CamelContext has been stopped.void
Callback invoked after the CamelContext has been created and before the auto-configured step starts.void
Callback invoked after the CamelContext has been created and before the auto-configured step starts.void
beforeStart
(BaseMainSupport main) Callback before the CamelContext is being created and started.void
beforeStop
(BaseMainSupport main) Callback before the CamelContext is being stopped.
-
Method Details
-
beforeInitialize
Callback invoked after the CamelContext has been created and before the auto-configured step starts.- Parameters:
main
- the main instance
-
beforeConfigure
Callback invoked after the CamelContext has been created and before the auto-configured step starts.- Parameters:
main
- the main instance
-
afterConfigure
Callback to configure the created CamelContext.- Parameters:
main
- the main instance
-
beforeStart
Callback before the CamelContext is being created and started.- Parameters:
main
- the main instance
-
afterStart
Callback after the CamelContext has been started.- Parameters:
main
- the main instance
-
beforeStop
Callback before the CamelContext is being stopped.- Parameters:
main
- the main instance
-
afterStop
Callback after the CamelContext has been stopped.- Parameters:
main
- the main instance
-