7 Replies Latest reply on Sep 6, 2006 10:13 PM by Gavin King

    Can you merge multiple annotations in one?

    hdslkf hklsdg Apprentice

      Many of my beans are annotated like this:


      Is it possible to create a new annotation that encapsulates all those annotations? e.g.
      @MyBean(scope=CONVERSATION, name="whatever")

      This would reduce the code lines slightly and there would be one source for mistakes less (e.g. you won't accidently leave out one of the annotations anymore). And you know the golden rule: Don't repeat yourself ;).

      Didn't find something like that, and I'm absolutely unexperienced with creating custom annotations. What do you think?