Skip to main content

Module template_reload

Module template_reload 

Source
Expand description

Process-global registry of template reload targets + the erased reload target contract.

This is the dependency-inversion seam (mirror of crate::tls_source::TlsReloadRegistry): it lives in camel-component-api so that both camel-core (the RuntimeBus) and camel-template (the ReloadHandler impl) can see it, WITHOUT camel-core depending on camel-template.

The ONLY reload path is TemplateReloadRegistry::reload_route, which is all-or-nothing: it builds every target for a route, validates every staged generation, then commits — guaranteeing atomicity structurally.

Structs§

RegistrationGuard
RAII guard returned by TemplateReloadRegistry::register. Removes the target on drop by its unique id (NOT route_id) — so a stopped-generation guard cannot evict a restarted-generation registration.
TemplateReloadRegistry
Process-global registry of template reload targets.

Traits§

TemplateReloadStaged
Erased staged-set marker with an owned-downcast accessor.
TemplateReloadTarget
One reload target per registered template producer endpoint.