pub struct TemplateComponent { /* private fields */ }Expand description
Factory for template: scheme Endpoints (ADR-0047 Stage 2).
Constructible from operator-supplied configs via TemplateComponent::new;
Default derives MinijinjaLimitsConfig::default() per the spec. Used by
the bundle (Task 4.5) to register the template scheme into a
CamelContext.
Implementations§
Source§impl TemplateComponent
impl TemplateComponent
Sourcepub fn new(
limits: ExternalTemplateLimitsConfig,
render_limits: MinijinjaLimitsConfig,
) -> Self
pub fn new( limits: ExternalTemplateLimitsConfig, render_limits: MinijinjaLimitsConfig, ) -> Self
Build a component from operator-supplied resource-limit configs.
Trait Implementations§
Source§impl Component for TemplateComponent
impl Component for TemplateComponent
Source§fn create_endpoint(
&self,
uri_str: &str,
ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri_str: &str, ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Parse-only endpoint creation. The URI is validated and the
operator-supplied limits are resolved (a zero value fails closed at
this seam), but the filesystem is NOT touched — the heavy lifting
happens in the endpoint’s lifecycle().start() (Task 4.4).
Source§fn metadata(&self) -> ComponentMetadata
fn metadata(&self) -> ComponentMetadata
Declare this component’s metadata (URI options, capabilities, version). Read more
Source§impl Debug for TemplateComponent
impl Debug for TemplateComponent
Source§impl Default for TemplateComponent
impl Default for TemplateComponent
Source§fn default() -> TemplateComponent
fn default() -> TemplateComponent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemplateComponent
impl RefUnwindSafe for TemplateComponent
impl Send for TemplateComponent
impl Sync for TemplateComponent
impl Unpin for TemplateComponent
impl UnsafeUnpin for TemplateComponent
impl UnwindSafe for TemplateComponent
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