Package org.apache.camel.main
Interface MainListener
-
- All Known Implementing Classes:
MainListenerSupport
public interface MainListenerA 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 voidafterConfigure(BaseMainSupport main)Callback to configure the created CamelContext.voidafterStart(BaseMainSupport main)Callback after the CamelContext has been started.voidafterStop(BaseMainSupport main)Callback after the CamelContext has been stopped.voidbeforeConfigure(BaseMainSupport main)Callback invoked after the the CamelContext has been created and before the auto-configured step starts.voidbeforeInitialize(BaseMainSupport main)Callback invoked after the the CamelContext has been created and before the auto-configured step starts.voidbeforeStart(BaseMainSupport main)Callback before the CamelContext is being created and started.voidbeforeStop(BaseMainSupport main)Callback before the CamelContext is being stopped.voidconfigure(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
-
-