[jboss-user] [JBoss Seam] - Re: Can you merge multiple annotations in one?

chuckadams do-not-reply at jboss.com
Mon Sep 4 17:09:00 EDT 2006


@Stateful isn't Seam's annotation to begin with, and most of the other annotations are pretty orthogonal to each other.  @Role subsumes @Name and @Scope, and maybe they could make it suck up some of the other annotations too.  You still need @Name though, or seam won't even pick it up as a component.

Consolidated annotations aren't really a panacea either -- look at Tapestry for how baroque those can get.  Clearly we're screaming for real syntax macros, but I won't be holding my breath.  Macro-haters do have one point -- textual source transformations suck when it comes to reasoning about code.  There's some macro processors for Java, but I don't think any of them support annotations, and of course most IDEs will fight with them.  Personally, I just make use of IDE templates to make the copying and pasting less arduous.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969298#3969298

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969298



More information about the jboss-user mailing list