Add support for named dependency resolution using attributes.