{"action":"opened","issue":{"url":"https://api.github.com/repos/joergreichert/ActiveAnnotationsExamples/issues/6","labels_url":"https://api.github.com/repos/joergreichert/ActiveAnnotationsExamples/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/joergreichert/ActiveAnnotationsExamples/issues/6/comments","events_url":"https://api.github.com/repos/joergreichert/ActiveAnnotationsExamples/issues/6/events","html_url":"https://github.com/joergreichert/ActiveAnnotationsExamples/issues/6","id":53299891,"number":6,"title":"Create active annotation to check existence of classes","user":{"login":"joergreichert","id":994131,"avatar_url":"https://avatars.githubusercontent.com/u/994131?v=3","gravatar_id":"","url":"https://api.github.com/users/joergreichert","html_url":"https://github.com/joergreichert","followers_url":"https://api.github.com/users/joergreichert/followers","following_url":"https://api.github.com/users/joergreichert/following{/other_user}","gists_url":"https://api.github.com/users/joergreichert/gists{/gist_id}","starred_url":"https://api.github.com/users/joergreichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joergreichert/subscriptions","organizations_url":"https://api.github.com/users/joergreichert/orgs","repos_url":"https://api.github.com/users/joergreichert/repos","events_url":"https://api.github.com/users/joergreichert/events{/privacy}","received_events_url":"https://api.github.com/users/joergreichert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joergreichert/ActiveAnnotationsExamples/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"joergreichert","id":994131,"avatar_url":"https://avatars.githubusercontent.com/u/994131?v=3","gravatar_id":"","url":"https://api.github.com/users/joergreichert","html_url":"https://github.com/joergreichert","followers_url":"https://api.github.com/users/joergreichert/followers","following_url":"https://api.github.com/users/joergreichert/following{/other_user}","gists_url":"https://api.github.com/users/joergreichert/gists{/gist_id}","starred_url":"https://api.github.com/users/joergreichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joergreichert/subscriptions","organizations_url":"https://api.github.com/users/joergreichert/orgs","repos_url":"https://api.github.com/users/joergreichert/repos","events_url":"https://api.github.com/users/joergreichert/events{/privacy}","received_events_url":"https://api.github.com/users/joergreichert/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-01-03T10:00:44Z","updated_at":"2015-01-03T10:00:44Z","closed_at":null,"body":"Scenario: OSGi environment and you want to check if a class is available by using Class.forName(fullyQualifiedClassNameStr). So you're safe to renamings although at runtime the bundle containing that class is maybe not available and the code uses then a fallback. \r\n\r\nIn the IDE with an active annotation you can check at compile if this class does exist. Only an <b>optional<b> requirement to the bundle containing that class is required. The String of the fully qualified class name must be a class member (either a field or a method returning that string), so this member can be annotated with an active annotation."}}