2 Replies Latest reply on May 7, 2004 2:58 AM by Michael Barker

    Resolving class metadata

    Michael Barker Apprentice

      Hi,

      I am currently experimenting with JBoss-AOP and the annotation/metadata support. I have noticed that for MethodInvocations the Class metadata is not part of path that is used to resolved the metadata. See the code from MethodInvocation.java:

      public Object getMetaData(Object group, Object attr) {
       Object val = super.getMetaData(group, attr);
       if (val != null) return val;
      
       if (getAdvisor() != null) {
       val = getAdvisor().getMethodMetaData().resolve(this, group, attr);
       if (val != null) return val;
       }
      
       if (getAdvisor() != null) {
       val = getAdvisor().getDefaultMetaData().resolve(this, group, attr);
       if (val != null) return val;
       }
      
       return null;
      }

      I am wondering if there is a reason for this? If not, let me know and I will post a patch to include it in the resolution path.