[jboss-user] [JBoss Seam] - Re: Annotation Interception Question

kasim do-not-reply at jboss.com
Fri Feb 8 08:54:23 EST 2008


"monkeyden" wrote : Ah, I see what you mean.  I was looking at the EJB3 example.
  | 
  | @Target(TYPE)
  | @Retention(RUNTIME)
  | @Interceptors(LoggedInInterceptor.class)
  | public @interface LoggedIn {}

Yeah ... when you do that if you look at the doco its only at the class level.

That parts not TOOO big of a deal since i just force the user to have two annotations. One at hte class level that the implementation does all the work. Then a marker on the method so i just check.

The lack of being able to inject other Seam components though does kind of suck.

There are ways around it since all i am essentially doing is packing it into a message and sending to a queue, but still sucks. Especially if i wanted to do somemthing more complicated. hmmm ...

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

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



More information about the jboss-user mailing list