interceptors???
 i made some test with the interceptors, and looks nice when the intention is 
to log some process, but if i have to do an "if" per method to see if is an 
specific method what is called, and after that see if the parameter is empty or 
not (null for example) that doesn't have much sense.
is better to have a class with every method mapped and just make a if per 
parameter to validate the content of this one.

i dont know if i'm not do it the best because with my  knowledge i have to 
write a lot of code on my interceptors to validate a simple null value. i just 
want to have a reference to the parameter and make the cuestion.

before, with the last specification of ejb i just have to put the sign of the 
method and after that make my validations, as simple as that.

is it a special type of interceptors to this purpose?
i just want to have a class level interceptor in that way i dont have to 
annotate all my methods.

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

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


-------------------------------------------------------
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

Reply via email to