{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/912","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/912/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/912/events","html_url":"https://github.com/eclipse/smarthome/issues/912","id":128416446,"number":912,"title":"Automation API should not prevent the use of Declarative Services","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipse/smarthome/labels/Automation","name":"Automation","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"danchom","id":11029931,"avatar_url":"https://avatars.githubusercontent.com/u/11029931?v=3","gravatar_id":"","url":"https://api.github.com/users/danchom","html_url":"https://github.com/danchom","followers_url":"https://api.github.com/users/danchom/followers","following_url":"https://api.github.com/users/danchom/following{/other_user}","gists_url":"https://api.github.com/users/danchom/gists{/gist_id}","starred_url":"https://api.github.com/users/danchom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danchom/subscriptions","organizations_url":"https://api.github.com/users/danchom/orgs","repos_url":"https://api.github.com/users/danchom/repos","events_url":"https://api.github.com/users/danchom/events{/privacy}","received_events_url":"https://api.github.com/users/danchom/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-01-24T18:44:04Z","updated_at":"2016-01-25T10:42:25Z","closed_at":null,"body":"The BaseModuleHandlerFactory expects the bundle context in its constructor. This prevents declaring handler factories through DS. This should be changed to a setBundleContext method, see https://github.com/eclipse/smarthome/issues/908#issuecomment-174288786.\r\n\r\n@danchom Could you have a look at that, please?"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/174466468","html_url":"https://github.com/eclipse/smarthome/issues/912#issuecomment-174466468","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/912","id":174466468,"user":{"login":"marinmitev","id":10187512,"avatar_url":"https://avatars.githubusercontent.com/u/10187512?v=3","gravatar_id":"","url":"https://api.github.com/users/marinmitev","html_url":"https://github.com/marinmitev","followers_url":"https://api.github.com/users/marinmitev/followers","following_url":"https://api.github.com/users/marinmitev/following{/other_user}","gists_url":"https://api.github.com/users/marinmitev/gists{/gist_id}","starred_url":"https://api.github.com/users/marinmitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinmitev/subscriptions","organizations_url":"https://api.github.com/users/marinmitev/orgs","repos_url":"https://api.github.com/users/marinmitev/repos","events_url":"https://api.github.com/users/marinmitev/events{/privacy}","received_events_url":"https://api.github.com/users/marinmitev/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T10:42:25Z","updated_at":"2016-01-25T10:42:25Z","body":"regarding activate method\r\nComponent implementation class can declare the following activate methods\r\n```java\r\n  public void activate(BundleContext bc) {\r\n     super.activate(bc)\r\n  }\r\n```\r\nor if it needs component context too then it can declare both:\r\n``` java\r\n  public void activate(ComponentContext cc, BundleContext bc) {\r\n    System.out.println(\"component activate cc=\" + cc + \" bc=\" + cc);\r\n       super.activate(bc)\r\n }\r\n```"}}