groostav
07/04/2016, 9:23 PMpublic interface ComponentFactory{
public Component create(RuntimeDep1 dep1, RuntimeDep2 dep2);
}
with
interface ComponentFactory{
operator fun invoke(dep1: RuntimeDep1 , dep2: RuntimeDep2): Component;
}
which changes my runtime code to
@Inject val factory: ComponentFactory;
//...
val provisionedSubcomponent = factory(dep1, dep2)