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

Methods

Methods