pub trait ContextFactory: Send + Sync {
// Required methods
fn key(&self) -> &'static str;
fn create_context(
&self,
config: &Value,
project_root: &Path,
) -> CoreResult<Box<dyn ContextErased>>;
}Expand description
Factory trait for creating contexts from configuration
Required Methods§
Sourcefn create_context(
&self,
config: &Value,
project_root: &Path,
) -> CoreResult<Box<dyn ContextErased>>
fn create_context( &self, config: &Value, project_root: &Path, ) -> CoreResult<Box<dyn ContextErased>>
Create a context instance from JSON configuration