/// Instantiates a new component instance with the given contents.
Instantiates a new component instance with the given contents.
Instantiates a new component instance with the given contents .
pub fn new(
        environment: Arc<Environment>,
        abs_moniker: AbsoluteMoniker,
        component_url: String,
        startup: fsys::StartupMode,
        context: WeakModelContext,
        parent: WeakExtendedInstance,
        hooks: Arc<Hooks>,
    ) -> Arc<Self> {
        Arc::new(Self {
            environment,
            abs_moniker,
            component_url,
            startup,
            context,
            parent,
            state: Mutex::new(InstanceState::New),
            execution: Mutex::new(ExecutionState::new()),
            actions: Mutex::new(ActionSet::new()),
            hooks,
            tasks: Mutex::new(vec![]),
        })
    }
pub fn new ( environment : Arc < Environment > , abs_moniker : AbsoluteMoniker , component_url : String , startup : fsys :: StartupMode , context : WeakModelContext , parent : WeakExtendedInstance , hooks : Arc < Hooks > , ) -> Arc < Self > { Arc :: new ( Self { environment , abs_moniker , component_url , startup , context , parent , state : Mutex :: new ( InstanceState :: New ) , execution : Mutex :: new ( ExecutionState :: new ( ) ) , actions : Mutex :: new ( ActionSet :: new ( ) ) , hooks , tasks : Mutex :: new ( vec ! [ ] ) , } ) }
Instantiates a new component instance with the given contents.
Instantiates a new component instance with the given contents .
environment
Arc<Environment>
abs_moniker
AbsoluteMoniker
component_url
String
startup
fsys::StartupMode
context
WeakModelContext
parent
WeakExtendedInstance
hooks
Arc<Hooks>