{"action":"opened","issue":{"url":"https://api.github.com/repos/juju-solutions/interface-java/issues/3","repository_url":"https://api.github.com/repos/juju-solutions/interface-java","labels_url":"https://api.github.com/repos/juju-solutions/interface-java/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/juju-solutions/interface-java/issues/3/comments","events_url":"https://api.github.com/repos/juju-solutions/interface-java/issues/3/events","html_url":"https://github.com/juju-solutions/interface-java/issues/3","id":138312763,"number":3,"title":"support version changed state","user":{"login":"kwmonroe","id":4576822,"avatar_url":"https://avatars.githubusercontent.com/u/4576822?v=3","gravatar_id":"","url":"https://api.github.com/users/kwmonroe","html_url":"https://github.com/kwmonroe","followers_url":"https://api.github.com/users/kwmonroe/followers","following_url":"https://api.github.com/users/kwmonroe/following{/other_user}","gists_url":"https://api.github.com/users/kwmonroe/gists{/gist_id}","starred_url":"https://api.github.com/users/kwmonroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwmonroe/subscriptions","organizations_url":"https://api.github.com/users/kwmonroe/orgs","repos_url":"https://api.github.com/users/kwmonroe/repos","events_url":"https://api.github.com/users/kwmonroe/events{/privacy}","received_events_url":"https://api.github.com/users/kwmonroe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T22:13:26Z","updated_at":"2016-03-03T22:13:26Z","closed_at":null,"body":"If the java version is changed (for example, by a user setting a new java_major), it would be nice if the java charm set a state that consuming charms could react to (for example, restarting their java-dependent service).\r\n\r\nCurrently, java consumers need to detect such a change in a '@when java.ready' state, which fires way more often than a new java version being set."}}