pub trait OriginFactory: Send + Sync {
// Required methods
fn connector_type(&self) -> &str;
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
config: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn OriginConnector>, OversyncError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Factory for creating OriginConnectors from a JSON config object.
Registered in the [PluginRegistry] by connector type name (e.g., "postgres").
The factory is called once per source to create a connector instance.