{"action":"created","issue":{"url":"https://api.github.com/repos/greenrobot/EventBus/issues/126","labels_url":"https://api.github.com/repos/greenrobot/EventBus/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/greenrobot/EventBus/issues/126/comments","events_url":"https://api.github.com/repos/greenrobot/EventBus/issues/126/events","html_url":"https://github.com/greenrobot/EventBus/issues/126","id":48460944,"number":126,"title":"Annotation Support","user":{"login":"rjbrock","id":417790,"avatar_url":"https://avatars.githubusercontent.com/u/417790?v=3","gravatar_id":"","url":"https://api.github.com/users/rjbrock","html_url":"https://github.com/rjbrock","followers_url":"https://api.github.com/users/rjbrock/followers","following_url":"https://api.github.com/users/rjbrock/following{/other_user}","gists_url":"https://api.github.com/users/rjbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/rjbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjbrock/subscriptions","organizations_url":"https://api.github.com/users/rjbrock/orgs","repos_url":"https://api.github.com/users/rjbrock/repos","events_url":"https://api.github.com/users/rjbrock/events{/privacy}","received_events_url":"https://api.github.com/users/rjbrock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/greenrobot/EventBus/labels/confirmed","name":"confirmed","color":"bfe5bf"},{"url":"https://api.github.com/repos/greenrobot/EventBus/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-11-12T01:26:53Z","updated_at":"2015-02-24T18:04:11Z","closed_at":null,"body":"Hey, this looks like a great library, and I have been exploring using it.  I know you guys have quite done quite a bit of research regarding Anotations vs Method Naming, but overall I really feel like Annotations are a much cleaner and more flexible solution.\r\n\r\nI added annotations to my local branch.  You can create a new EventBus that uses annotations like this `new EventBus(DeclarationType.ANNOTATIONS)`.  Then you can subscribe to receive events on any method like this:\r\n\r\n`@Subscribe`\r\n`public void onMyEvent(CustomEvent e)`\r\n\r\nThis uses the caller chooses thread method.  We can also change this by adding an argument.\r\n\r\n`@Subscribe(threadMode = ThreadMode.Background)`\r\n`public void onMyEvent(CustomEvent e)`\r\n\r\nThis uses the background thread and is definitely a more explicit syntax.  \r\n\r\nHere is a link to my repo where I implemented the changes. \r\nhttps://github.com/rjbrock/EventBus\r\n\r\nI would still need to add unit tests before submitting a pull request so I just wanted to see what your thoughts were first.\r\n\r\nRick\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/greenrobot/EventBus/issues/comments/75810860","html_url":"https://github.com/greenrobot/EventBus/issues/126#issuecomment-75810860","issue_url":"https://api.github.com/repos/greenrobot/EventBus/issues/126","id":75810860,"user":{"login":"rjbrock","id":417790,"avatar_url":"https://avatars.githubusercontent.com/u/417790?v=3","gravatar_id":"","url":"https://api.github.com/users/rjbrock","html_url":"https://github.com/rjbrock","followers_url":"https://api.github.com/users/rjbrock/followers","following_url":"https://api.github.com/users/rjbrock/following{/other_user}","gists_url":"https://api.github.com/users/rjbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/rjbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjbrock/subscriptions","organizations_url":"https://api.github.com/users/rjbrock/orgs","repos_url":"https://api.github.com/users/rjbrock/repos","events_url":"https://api.github.com/users/rjbrock/events{/privacy}","received_events_url":"https://api.github.com/users/rjbrock/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T18:04:11Z","updated_at":"2015-02-24T18:04:11Z","body":"@greenrobot awesome, thanks for taking a look at this.  Any help you need from me?  L"}}