3 Replies Latest reply on Dec 11, 2008 1:10 PM by Ales Justin

    How to pick up field-level annotations in annotation plugin?

    Andrew Rubinger Master

      I've got an annotation plugin:

      public class EjbReferenceAnnotationPlugin extends FieldAnnotationPlugin<EJB>
      {...}


      ..which does not run through "protected ValueMetaData createValueMetaData(FieldInfo fieldInfo, EJB annotation)" upon encountering @EJB on a field-level property.

      If I change this to extend from PropertyAnnotationPlugin, accessor methods annotated w/ @EJB are picked up.

      Assuming I've given enough information to describe the disconnect, what am I missing to get field-level annotations read?

      S,
      ALR