R
- the type of the Registry
being used by this callbackpublic interface CamelContextLifecycle<R extends org.apache.camel.spi.Registry>
ServletCamelContext
is started and stopped.Modifier and Type | Method and Description |
---|---|
void |
afterAddRoutes(ServletCamelContext camelContext,
R registry)
Callback after adding the routes.
|
void |
afterStart(ServletCamelContext camelContext,
R registry)
Callback after
ServletCamelContext has been started. |
void |
afterStop(ServletCamelContext camelContext,
R registry)
Callback after
ServletCamelContext has been stopped. |
void |
beforeAddRoutes(ServletCamelContext camelContext,
R registry)
Callback before adding the routes.
|
void |
beforeStart(ServletCamelContext camelContext,
R registry)
Callback before starting
ServletCamelContext . |
void |
beforeStop(ServletCamelContext camelContext,
R registry)
Callback before stopping
ServletCamelContext . |
void beforeStart(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
.camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.void afterStart(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
has been started.camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.void beforeStop(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
.camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.void afterStop(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
has been stopped.camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.void beforeAddRoutes(ServletCamelContext camelContext, R registry) throws Exception
camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.void afterAddRoutes(ServletCamelContext camelContext, R registry) throws Exception
camelContext
- the Camel contextregistry
- the registryException
- is thrown if any error.Apache Camel