{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/2087","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/2087/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/2087/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/2087/events","html_url":"https://github.com/eclipse/smarthome/pull/2087","id":174273120,"number":2087,"title":"Refactoring bridge/thing life cycle.","user":{"login":"sbussweiler","id":5637899,"avatar_url":"https://avatars.githubusercontent.com/u/5637899?v=3","gravatar_id":"","url":"https://api.github.com/users/sbussweiler","html_url":"https://github.com/sbussweiler","followers_url":"https://api.github.com/users/sbussweiler/followers","following_url":"https://api.github.com/users/sbussweiler/following{/other_user}","gists_url":"https://api.github.com/users/sbussweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/sbussweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbussweiler/subscriptions","organizations_url":"https://api.github.com/users/sbussweiler/orgs","repos_url":"https://api.github.com/users/sbussweiler/repos","events_url":"https://api.github.com/users/sbussweiler/events{/privacy}","received_events_url":"https://api.github.com/users/sbussweiler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-31T13:28:23Z","updated_at":"2016-09-08T14:30:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/2087","html_url":"https://github.com/eclipse/smarthome/pull/2087","diff_url":"https://github.com/eclipse/smarthome/pull/2087.diff","patch_url":"https://github.com/eclipse/smarthome/pull/2087.patch"},"body":"- A `BridgeHandler` of a bridge is initialized before `ThingHandler`s of its child things are initialized.\r\n- A `BridgeHandler` is disposed after all `ThingHandler`s of its child things are disposed.\r\n- A bridge handler (new interface `BridgeHandler`) is notified if a child handler is initialized/disposed.\r\n- The  methods `ThingHandler.bridgeHandlerInitialized()` and `ThingHandler.bridgeHandlerDisposed()` are removed. This **breaks the API**.\r\n-  **OSGi service registration** of thing/bidge handlers has been removed. \r\n\r\nSigned-off-by: Stefan Bussweiler <s.bussweiler@external.telekom.de>"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/245616530","html_url":"https://github.com/eclipse/smarthome/pull/2087#issuecomment-245616530","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/2087","id":245616530,"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},"created_at":"2016-09-08T14:30:58Z","updated_at":"2016-09-08T14:30:58Z","body":"> I don't know if the framework must prevent creation of \"bridged-things\" without a bridge.\r\n\r\nI think this is what would need to happen. If there is no bridge referenced in the Thing, there is no chance to tell whether a bridge is required or not - so the framework correctly assumes the Thing can do without a bridge and thus instantiates the handler for it.\r\nIf a bridge is mandatory, the bridgeUID must imho always be filled out."}}
{"actor":{"display_login":"kaikreuzer"}}