pub(crate) fn new_root(
        decl: ComponentDecl,
        url: String,
        top_instance: Arc<TopInstanceForAnalyzer>,
        runtime_config: Arc<RuntimeConfig>,
        policy_checker: GlobalPolicyChecker,
        component_id_index: Arc<ComponentIdIndex>,
        runner_registry: RunnerRegistry,
    ) -> Arc<Self> {
        let environment =
            EnvironmentForAnalyzer::new_root(runner_registry, &runtime_config, &top_instance);
        let instanced_moniker = InstancedAbsoluteMoniker::root();
        let abs_moniker = instanced_moniker.clone().to_absolute_moniker();
        Arc::new(Self {
            instanced_moniker,
            abs_moniker,
            decl,
            url,
            parent: WeakExtendedInstanceInterface::from(&ExtendedInstanceInterface::AboveRoot(
                top_instance,
            )),
            children: RwLock::new(HashMap::new()),
            environment,
            policy_checker,
            component_id_index,
        })
    }
// Creates a new root component instance.
Creates a new root component instance.
Creates a new root component instance .
pub(crate) fn new_root(
        decl: ComponentDecl,
        url: String,
        top_instance: Arc<TopInstanceForAnalyzer>,
        runtime_config: Arc<RuntimeConfig>,
        policy_checker: GlobalPolicyChecker,
        component_id_index: Arc<ComponentIdIndex>,
        runner_registry: RunnerRegistry,
    ) -> Arc<Self> {
        let environment =
            EnvironmentForAnalyzer::new_root(runner_registry, &runtime_config, &top_instance);
        let instanced_moniker = InstancedAbsoluteMoniker::root();
        let abs_moniker = instanced_moniker.clone().to_absolute_moniker();
        Arc::new(Self {
            instanced_moniker,
            abs_moniker,
            decl,
            url,
            parent: WeakExtendedInstanceInterface::from(&ExtendedInstanceInterface::AboveRoot(
                top_instance,
            )),
            children: RwLock::new(HashMap::new()),
            environment,
            policy_checker,
            component_id_index,
        })
    }
pub ( crate ) fn new_root ( decl : ComponentDecl , url : String , top_instance : Arc < TopInstanceForAnalyzer > , runtime_config : Arc < RuntimeConfig > , policy_checker : GlobalPolicyChecker , component_id_index : Arc < ComponentIdIndex > , runner_registry : RunnerRegistry , ) -> Arc < Self > { let environment = EnvironmentForAnalyzer :: new_root ( runner_registry , & runtime_config , & top_instance ) ; let instanced_moniker = InstancedAbsoluteMoniker :: root ( ) ; let abs_moniker = instanced_moniker . clone ( ) . to_absolute_moniker ( ) ; Arc :: new ( Self { instanced_moniker , abs_moniker , decl , url , parent : WeakExtendedInstanceInterface :: from ( & ExtendedInstanceInterface :: AboveRoot ( top_instance , ) ) , children : RwLock :: new ( HashMap :: new ( ) ) , environment , policy_checker , component_id_index , } ) }
Creates a new root component instance.
Creates a new root component instance .
decl
ComponentDecl
url
String
top_instance
Arc<TopInstanceForAnalyzer>
runtime_config
Arc<RuntimeConfig>
policy_checker
GlobalPolicyChecker
component_id_index
Arc<ComponentIdIndex>
runner_registry
RunnerRegistry
decl
ComponentDecl
url
String
top_instance
Arc<TopInstanceForAnalyzer>
runtime_config
Arc<RuntimeConfig>
policy_checker
GlobalPolicyChecker
component_id_index
Arc<ComponentIdIndex>
runner_registry
RunnerRegistry