1) Its classlevel only - we have an ancient open issue for this, but with Web
Beans on the way, I don't think this will see light before then. Your approach
is the best workaround I know of.
2) You should be able inject other components using
Component.getInstance/Contexts lookup. What is the
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
You mean @AroundInvoke? The example uses it on a method:
http://docs.jboss.com/seam/2.0.1.GA/reference/en/html_single/#d0e4342
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127621#4127621
Reply to the post :
Ah, I see what you mean. I was looking at the EJB3 example.
@Target(TYPE)
@Retention(RUNTIME)
@Interceptors(LoggedInInterceptor.class)
public @interface LoggedIn {}
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127622#4127622
Reply to the post :