1 of 1 people found this helpful
Yes, only the methods that are invoked on a contextual reference (injected reference) are intercepted. This is given by the specification. What's the scope of your component? If it is normal-scoped, you can always inject a self-reference and invoke the method on it. This invocation will be intercepted.
Jozef Hartinger escribió:
This is given by the specification.
Where? Just because then I skipped that part....
I've used this "self-reference" injection, but for other meanings. I'll give this option a try
Thanks for the reference ^^
But trying the "self-reference", I wanted to make
privatemethod... But interceptor is not called.
But changing from
publicworks. Is that correct too, right? Also is in the CDI spec?