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 CamelContextAwareAn 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 CamelContextgetCamelContext()Get theCamelContextvoidsetCamelContext(CamelContext camelContext)Injects theCamelContextstatic <T> TtrySetCamelContext(T object, CamelContext camelContext)Set theCamelContextcontext if the object is an instance ofCamelContextAware.
-
-
-
Method Detail
-
trySetCamelContext
static <T> T trySetCamelContext(T object, CamelContext camelContext)Set theCamelContextcontext 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
-
-