extract a super class for all kinds of injectors