use camel_api::CamelError;
use crate::component_context::ComponentContext;
use crate::endpoint::Endpoint;
pub trait Component: Send + Sync {
fn scheme(&self) -> &str;
fn create_endpoint(
&self,
uri: &str,
ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>;
}