If I extend a standard Java Class and make the subclass a Seam component, are the inherited methods going to have the overhead of interception?
In other words, do I have to Override them and annotate them with @BypassInterceptors?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer: Yep they will be intercepted.
When you make a component, all calls will be intercepted.
When you use @In or Component.getInstance what you get is a proxy to the object, not the object itself, it’s in the proxy that the interception magic occurs.
If you are really worried about the performance the best bet would be to mark the subclass with @BypassInterceptors and use Component.getInstance(…)