implementation of class and attributeToInject
classToInject, attributeToInject