switched from static methods to static properties

switched from static methods to static properties for inject and
attributes