{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/di.js/issues/107","labels_url":"https://api.github.com/repos/angular/di.js/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/angular/di.js/issues/107/comments","events_url":"https://api.github.com/repos/angular/di.js/issues/107/events","html_url":"https://github.com/angular/di.js/issues/107","id":106964868,"number":107,"title":"Question: interfaces","user":{"login":"csrinaldi","id":1685703,"avatar_url":"https://avatars.githubusercontent.com/u/1685703?v=3","gravatar_id":"","url":"https://api.github.com/users/csrinaldi","html_url":"https://github.com/csrinaldi","followers_url":"https://api.github.com/users/csrinaldi/followers","following_url":"https://api.github.com/users/csrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/csrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/csrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csrinaldi/subscriptions","organizations_url":"https://api.github.com/users/csrinaldi/orgs","repos_url":"https://api.github.com/users/csrinaldi/repos","events_url":"https://api.github.com/users/csrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/csrinaldi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T11:37:47Z","updated_at":"2015-09-17T11:37:47Z","closed_at":null,"body":"It is possible to anotate multiple classes with the same interface and then ask to \"Injector\" all annotated classes with the interface?\r\n\r\nBy Example:\r\n\r\n```\r\nclass Module{}\r\n\r\nclass AModule{}\r\ndi.annotate(Module, new di.Inject(Module));\r\n\r\nclass BModule{}\r\ndi.annotate(Module, new di.Inject(Module));\r\n\r\n// More code\r\n\r\nvar di = require('di');\r\nvar Module = require('./core/module');\r\nvar injector = new di.Injector();\r\n\r\nvar modules = injector.get(Module);\r\n\r\n// [AModule, BModule]\r\n\r\n```\r\n\r\n"}}