{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2777","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2777/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2777/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2777/events","html_url":"https://github.com/hapijs/hapi/issues/2777","id":107538197,"number":2777,"title":"Public API for Registered Plugins","user":{"login":"arb","id":1591483,"avatar_url":"https://avatars.githubusercontent.com/u/1591483?v=3","gravatar_id":"","url":"https://api.github.com/users/arb","html_url":"https://github.com/arb","followers_url":"https://api.github.com/users/arb/followers","following_url":"https://api.github.com/users/arb/following{/other_user}","gists_url":"https://api.github.com/users/arb/gists{/gist_id}","starred_url":"https://api.github.com/users/arb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arb/subscriptions","organizations_url":"https://api.github.com/users/arb/orgs","repos_url":"https://api.github.com/users/arb/repos","events_url":"https://api.github.com/users/arb/events{/privacy}","received_events_url":"https://api.github.com/users/arb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/hapi/labels/request","name":"request","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-21T15:32:55Z","updated_at":"2015-10-02T21:19:02Z","closed_at":null,"body":"Can we add a method to return all of the registered plugins on a connection? The use case is to provide a comprehensive data point about everything going on inside a hapi server, including registered plugins. Currently, I'm using `connection._registrations` which is obviously not a good, long term solution."},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/145157448","html_url":"https://github.com/hapijs/hapi/issues/2777#issuecomment-145157448","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2777","id":145157448,"user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T21:19:02Z","updated_at":"2015-10-02T21:19:02Z","body":"The problem is, we don't really know what's going on...\r\n\r\nThere are two types of plugins, those that change the server only and those that change the connections (and maybe the server). If you load the server-only first, then add a connection, the list will be missing the registration but it will be there. We need the plugin to tell hapi what it is doing for a better outcome. I am working on this elsewhere."}}