Is it possible to use bijection in interceptors?
I would like to use the @In annotation to get a reference to the built-in actor
component in an interceptor derived from the LoggedInInterceptor used in the
examples. I have tried a few combinations of interception annotations in the
interceptor class without any luck.
This does not inject, but Actor.instance() works when the interceptor is called:
@Around({BijectionInterceptor.class,
| ValidationInterceptor.class,
| ConversationInterceptor.class,
| BusinessProcessInterceptor.class})
| @Within(RemoveInterceptor.class)
Removing the @Around and @Within annotations produces the same behavior.
This prevents the interceptor from being called:
@Around({ValidationInterceptor.class,
| ConversationInterceptor.class,
| BusinessProcessInterceptor.class})
| @Within({BijectionInterceptor.class,
| RemoveInterceptor.class})
I am trying to inject actor with this code in all cases:
@In(create=true)
| Actor actor = null;
Actor.instance() does provide the correct reference so this is not a
show-stopper for me, but I would be grateful for any tips on where I am going
wrong. Is bijection even a reasonable thing to attempt in an interceptor?
Many thanks,
Keith
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931703#3931703
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931703
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user