Package org.apache.camel
Interface CamelContextAware
-
- All Known Subinterfaces:
CamelClusterService
,CamelClusterView
,CamelPreemptiveClusterService
,CamelPreemptiveClusterView
,Component
,ContextReloadStrategy
,Debugger
,DevConsoleRegistry
,DevConsoleResolver
,EndpointUriFactory
,ExchangeFactory
,ExtendedRoutesBuilderLoader
,HealthCheckRegistry
,HealthCheckResolver
,MessageHistoryFactory
,PooledObjectFactory<T>
,ProcessorExchangeFactory
,ReloadStrategy
,ResourceLoader
,ResourceReloadStrategy
,ResourceResolver
,RouteController
,RoutesBuilderLoader
,RoutesLoader
,RuntimeCamelCatalog
,ScheduledPollConsumerScheduler
,SendDynamicAware
,ServiceRegistry
,SSLContextParametersAware
,SupervisingRouteController
,TypeConverterRegistry
- All Known Implementing Classes:
BaseSSLContextParameters
,FilterParameters
,JsseParameters
,KeyManagersParameters
,KeyStoreParameters
,SecureRandomParameters
,SSLContextClientParameters
,SSLContextParameters
,SSLContextServerParameters
,Transformer
,TrustManagersParameters
,Validator
public interface CamelContextAware
An interface to represent an object which wishes to be injected with theCamelContext
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CamelContext
getCamelContext()
Get theCamelContext
void
setCamelContext(CamelContext camelContext)
Injects theCamelContext
static <T> T
trySetCamelContext(T object, CamelContext camelContext)
Set theCamelContext
context if the object is an instance ofCamelContextAware
.
-
-
-
Method Detail
-
trySetCamelContext
static <T> T trySetCamelContext(T object, CamelContext camelContext)
Set theCamelContext
context if the object is an instance ofCamelContextAware
.
-
getCamelContext
CamelContext getCamelContext()
Get theCamelContext
- Returns:
- the Camel context
-
setCamelContext
void setCamelContext(CamelContext camelContext)
Injects theCamelContext
- Parameters:
camelContext
- the Camel context
-
-