{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/358","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/358/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/358/events","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/358","id":94913029,"number":358,"title":"WIP: Register an Asciidoctor service into the OSGi registry when activated","user":{"login":"lefou","id":1321393,"avatar_url":"https://avatars.githubusercontent.com/u/1321393?v=3","gravatar_id":"","url":"https://api.github.com/users/lefou","html_url":"https://github.com/lefou","followers_url":"https://api.github.com/users/lefou/followers","following_url":"https://api.github.com/users/lefou/following{/other_user}","gists_url":"https://api.github.com/users/lefou/gists{/gist_id}","starred_url":"https://api.github.com/users/lefou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefou/subscriptions","organizations_url":"https://api.github.com/users/lefou/orgs","repos_url":"https://api.github.com/users/lefou/repos","events_url":"https://api.github.com/users/lefou/events{/privacy}","received_events_url":"https://api.github.com/users/lefou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-14T10:16:43Z","updated_at":"2015-07-14T11:50:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/pulls/358","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/358","diff_url":"https://github.com/asciidoctor/asciidoctorj/pull/358.diff","patch_url":"https://github.com/asciidoctor/asciidoctorj/pull/358.patch"},"body":"This PR is work in progress. It works when executed with JRuby 9.0.0.0.rc2 but not with JRuby 1.7. It adds an OSGi bundle activator. When the bundle becomes active, it creates an `Asciidoctor` instance and registers it under the `Asciidoctor` interface into the OSGi registry. When stopped, the service will be unregistered and it's `shutdown` method is invoked. In resolved (but not activated) state, the bundle does not create any instances nor JRuby sessions.\r\n\r\nThis PR is based on the info from #357 and should provide the next step of #297. The newly added files contain hard coded version numbers. Feedback or PRs to make these dynamic are very welcome. Also I have not tested if both `.jrubydir` files are required or only one of them.\r\n\r\nReview by @mojavelinux and @ginseil"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/comments/121214011","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/358#issuecomment-121214011","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/358","id":121214011,"user":{"login":"robertpanzer","id":1163662,"avatar_url":"https://avatars.githubusercontent.com/u/1163662?v=3","gravatar_id":"","url":"https://api.github.com/users/robertpanzer","html_url":"https://github.com/robertpanzer","followers_url":"https://api.github.com/users/robertpanzer/followers","following_url":"https://api.github.com/users/robertpanzer/following{/other_user}","gists_url":"https://api.github.com/users/robertpanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/robertpanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertpanzer/subscriptions","organizations_url":"https://api.github.com/users/robertpanzer/orgs","repos_url":"https://api.github.com/users/robertpanzer/repos","events_url":"https://api.github.com/users/robertpanzer/events{/privacy}","received_events_url":"https://api.github.com/users/robertpanzer/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T11:50:42Z","updated_at":"2015-07-14T11:50:42Z","body":"Just pushed the fix to master: 1523a4a2233e414a5d1009122dbdd939973514f4\r\nYou can rebase on that to fix the travis build."}}