1 2 Previous Next 17 Replies Latest reply on Sep 4, 2007 11:15 AM by adrian.brock Go to original post
      • 15. Re: Annotation processing

         

        "alesj" wrote:

        But if I want to remove the hack with joinpoint being ControllerContext aware, I need to get the context's name from somewhere.


        No you don't, you just need to match the scope level. The name is irrelevant
        for the single MetaDataContext (you already got the correct one)
        as opposed to looking it up in the repository.


        • 16. Re: Annotation processing
          alesj

           

          "adrian@jboss.org" wrote:

          No you don't, you just need to match the scope level. The name is irrelevant
          for the single MetaDataContext (you already got the correct one)
          as opposed to looking it up in the repository.

          I guess the MetaData.getScopeMetaData() method should then take ScopeLevel as parameter, and not the whole ScopeKey.

          • 17. Re: Annotation processing

             

            "alesj" wrote:
            "adrian@jboss.org" wrote:

            No you don't, you just need to match the scope level. The name is irrelevant
            for the single MetaDataContext (you already got the correct one)
            as opposed to looking it up in the repository.

            I guess the MetaData.getScopeMetaData() method should then take ScopeLevel as parameter, and not the whole ScopeKey.


            Yes, that sounds correct. If you really need to be looking at individual scopes
            (I don't see why beyond the AOP case?) then you just want to say things like
            "Are there any annotations at the application level?"
            The actual application name is unimportant.

            1 2 Previous Next