{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/341","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/341/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/341/events","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/341","id":90089514,"number":341,"title":"Added annotation based processor configuration","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-22T12:50:01Z","updated_at":"2015-06-22T20:22:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/pulls/341","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/341","diff_url":"https://github.com/asciidoctor/asciidoctorj/pull/341.diff","patch_url":"https://github.com/asciidoctor/asciidoctorj/pull/341.patch"},"body":"This should implement #196 \r\n\r\nIt is now possible to add these annotations:\r\n- `@Name` to define block or macro names for BlockProcessors, BlockMacro- and InlineMacroProcessors\r\n- `@ContentModel` to define the content model of a BlockProcessor\r\n- `@Contexts` to define the contexts of a BlockProcessor\r\n- `@DefaultAttribute` to define default attributes to pass to the process method of a processor\r\n- `@DefaultAttributes` to define multiple `@DefaultAttribute`s on one type\r\n- `@Location` to define where content generated by a DocinfoProcessor is to be placed.\r\n\r\n`@PositionalAttributes` are missing yet because I am not aware what they should do.\r\n\r\nIn general the implementation adds options to the processors *class* object that serve as a default configuration for the instances. (see https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/extensions.rb#L84)\r\n\r\nIf this is a way to pursue docs and javadocs should be enhanced.\r\nAlso the javadocs of the new annotations should be extended with examples.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/comments/114251403","html_url":"https://github.com/asciidoctor/asciidoctorj/pull/341#issuecomment-114251403","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctorj/issues/341","id":114251403,"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-06-22T20:22:31Z","updated_at":"2015-06-22T20:22:31Z","body":"\n> Am 22.06.2015 um 21:43 schrieb Dan Allen <notifications@github.com>:\n> \n> One for the test suite, and one for teamwork.\n\nHehe, just had a Pale 31...\n"}}