Package org.apache.camel.main
Class MainListenerSupport
java.lang.Object
org.apache.camel.main.MainListenerSupport
- All Implemented Interfaces:
MainListener
A useful base class for
MainListener
implementations.-
Constructor Summary
-
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.
-
Constructor Details
-
MainListenerSupport
public MainListenerSupport()
-
-
Method Details
-
beforeInitialize
Description copied from interface:MainListener
Callback invoked after the CamelContext has been created and before the auto-configured step starts.- Specified by:
beforeInitialize
in interfaceMainListener
- Parameters:
main
- the main instance
-
beforeConfigure
Description copied from interface:MainListener
Callback invoked after the CamelContext has been created and before the auto-configured step starts.- Specified by:
beforeConfigure
in interfaceMainListener
- Parameters:
main
- the main instance
-
afterConfigure
Description copied from interface:MainListener
Callback to configure the created CamelContext.- Specified by:
afterConfigure
in interfaceMainListener
- Parameters:
main
- the main instance
-
beforeStart
Description copied from interface:MainListener
Callback before the CamelContext is being created and started.- Specified by:
beforeStart
in interfaceMainListener
- Parameters:
main
- the main instance
-
afterStart
Description copied from interface:MainListener
Callback after the CamelContext has been started.- Specified by:
afterStart
in interfaceMainListener
- Parameters:
main
- the main instance
-
beforeStop
Description copied from interface:MainListener
Callback before the CamelContext is being stopped.- Specified by:
beforeStop
in interfaceMainListener
- Parameters:
main
- the main instance
-
afterStop
Description copied from interface:MainListener
Callback after the CamelContext has been stopped.- Specified by:
afterStop
in interfaceMainListener
- Parameters:
main
- the main instance
-