|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
R
- the type of the Registry
being used by this callbackpublic interface CamelContextLifecycle<R extends org.apache.camel.spi.Registry>
A callback lifecycle allows end users to implement custom logic before
the ServletCamelContext
is started and stopped.
Method Summary | |
---|---|
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 . |
Method Detail |
---|
void beforeStart(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
.
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.void afterStart(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
has been started.
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.void beforeStop(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
.
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.void afterStop(ServletCamelContext camelContext, R registry) throws Exception
ServletCamelContext
has been stopped.
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.void beforeAddRoutes(ServletCamelContext camelContext, R registry) throws Exception
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.void afterAddRoutes(ServletCamelContext camelContext, R registry) throws Exception
camelContext
- the Camel contextregistry
- the registry
Exception
- is thrown if any error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |