title: How can I access a RetentionPolicy.CLASS java annotation?
body: <p>Is there a way to configure a ClassLoader or a JVM to load annotations with CLASS retention policy, so I can access them using reflection?</p>
  
  <p>This is useful for compile-time post-processing, as mentioned <a href="https://stackoverflow.com/questions/3849593/java-annotations-looking-for-an-example-of-retentionpolicy-class">here</a>.
  I annotate some of my classes in order to generate an antlib.xml file automatically.  I would prefer if my annotation could have CLASS retention policy, so that it does not create runtime dependencies.</p>