var mycomponent = new MyComponentA(logger);
for (var i = 0; i < 10; i++)
    mycomponent.myMethod();