Package org.apache.camel
Interface CamelContextAware
- All Superinterfaces:
HasCamelContext
- 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
An interface to represent an object which wishes to be injected with the
CamelContext-
Method Summary
Modifier and TypeMethodDescriptionvoidsetCamelContext(CamelContext camelContext) Injects theCamelContextstatic <T> TtrySetCamelContext(T object, CamelContext camelContext) Set theCamelContextcontext if the object is an instance ofCamelContextAware.Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
-
Method Details
-
trySetCamelContext
Set theCamelContextcontext if the object is an instance ofCamelContextAware. -
setCamelContext
Injects theCamelContext- Parameters:
camelContext- the Camel context
-