public interface Camel extends Extension, Activation
CamelContext
and ProducerTemplate
are stopped when the associated actor system is shut down.
This trait can be obtained through the CamelExtension
object.Modifier and Type | Method and Description |
---|---|
org.apache.camel.impl.DefaultCamelContext |
context()
Underlying camel context.
|
CamelSettings |
settings()
The settings for the CamelExtension
|
ActorRef |
supervisor()
INTERNAL API
Returns the camel supervisor actor.
|
ActorSystem |
system()
INTERNAL API
Returns the associated ActorSystem.
|
org.apache.camel.ProducerTemplate |
template()
The Camel ProducerTemplate.
|
activationFutureFor, deactivationFutureFor
org.apache.camel.impl.DefaultCamelContext context()
It can be used to configure camel manually, i.e. when the user wants to add new routes or endpoints, i.e.
camel.context.addRoutes(...)
@see org.apache.camel.impl.DefaultCamelContextorg.apache.camel.ProducerTemplate template()
ProducerTemplate
CamelSettings settings()
ActorRef supervisor()
ActorSystem system()