pub struct CamelContextBuilder { /* private fields */ }Implementations§
Source§impl CamelContextBuilder
impl CamelContextBuilder
pub fn new() -> Self
pub fn registry(self, registry: Arc<Mutex<Registry>>) -> Self
pub fn languages(self, languages: SharedLanguageRegistry) -> Self
pub fn metrics(self, metrics: Arc<dyn MetricsCollector>) -> Self
Sourcepub fn platform_service(
self,
platform_service: Arc<dyn PlatformService>,
) -> Self
pub fn platform_service( self, platform_service: Arc<dyn PlatformService>, ) -> Self
Set a custom platform service.
pub fn supervision(self, config: SupervisionConfig) -> Self
pub fn runtime_store(self, store: InMemoryRuntimeStore) -> Self
pub fn shutdown_timeout(self, timeout: Duration) -> Self
Sourcepub fn beans(self, beans: Arc<Mutex<BeanRegistry>>) -> Self
pub fn beans(self, beans: Arc<Mutex<BeanRegistry>>) -> Self
Inject a shared BeanRegistry for bean resolution across routes.
Sourcepub fn with_lifecycle<L: Lifecycle + 'static>(self, service: L) -> Self
pub fn with_lifecycle<L: Lifecycle + 'static>(self, service: L) -> Self
Register a lifecycle service (e.g., FunctionRuntimeService) at builder time.
This is the recommended path for services that need to be wired into the
route controller before any routes are added. The function invoker (if any)
is extracted and passed to the DefaultRouteController during build().
pub async fn build(self) -> Result<CamelContext, CamelError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CamelContextBuilder
impl !RefUnwindSafe for CamelContextBuilder
impl Send for CamelContextBuilder
impl Sync for CamelContextBuilder
impl Unpin for CamelContextBuilder
impl UnsafeUnpin for CamelContextBuilder
impl !UnwindSafe for CamelContextBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more