invoke method takes an injector as parameter