map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface ComponentFactory<ExpectedServiceType>

    Factory for dynamically creating components. A component factory is registered as service with interface ct.framework.api.ComponentFactory. The service metadata contain the component name, e.g. {"Component-Name": "Test"}.

    interface ComponentFactory<
        ExpectedServiceType extends ServiceInstance = ServiceInstance,
    > {
        newInstance<ServiceType extends ServiceInstance>(
            properties?: ComponentProperties,
        ): ComponentInstance<ServiceType>;
    }

    Type Parameters

    Index

    Methods

    Methods