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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
afterConfigure(BaseMainSupport main)
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
beforeConfigure(BaseMainSupport main)
Callback invoked after the the CamelContext has been created and before the auto-configured step starts.void
beforeInitialize(BaseMainSupport main)
Callback invoked after the 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.void
configure(org.apache.camel.CamelContext context)
Deprecated.UseafterConfigure(BaseMainSupport)
instead
-
-
-
Method Detail
-
beforeInitialize
void beforeInitialize(BaseMainSupport main)
Callback invoked after the the CamelContext has been created and before the auto-configured step starts.- Parameters:
main
- the main instance
-
beforeConfigure
void beforeConfigure(BaseMainSupport main)
Callback invoked after the the CamelContext has been created and before the auto-configured step starts.- Parameters:
main
- the main instance
-
afterConfigure
void afterConfigure(BaseMainSupport main)
Callback to configure the created CamelContext.- Parameters:
main
- the main instance
-
configure
@Deprecated void configure(org.apache.camel.CamelContext context)
Deprecated.UseafterConfigure(BaseMainSupport)
instead
-
beforeStart
void beforeStart(BaseMainSupport main)
Callback before the CamelContext is being created and started.- Parameters:
main
- the main instance
-
afterStart
void afterStart(BaseMainSupport main)
Callback after the CamelContext has been started.- Parameters:
main
- the main instance
-
beforeStop
void beforeStop(BaseMainSupport main)
Callback before the CamelContext is being stopped.- Parameters:
main
- the main instance
-
afterStop
void afterStop(BaseMainSupport main)
Callback after the CamelContext has been stopped.- Parameters:
main
- the main instance
-
-