Ok, I’m trying to make sure I understand how bean
services have been implemented. From what I understand (could be way off
base, though)…
- The proxy returned to the client is a subclass of the
bean service implementation class. It also implements some sort of
dynamically generated interface (we’ll call it bean interface) which
has all of the public methods of the bean class in it.
- The proxy returned to the client doesn’t call any
of the superclass implementations of the methods. It overrides the
methods, forwarding calls to the InterceptorStack (which also uses the bean
interface).
I do have some questions…
- We can’t put service interceptors on non-public
(or protected) methods, correct?
- What type of object is at the end of the interceptor
stack? Do we generate a new subclass of the bean service
implementation class which implements the bean interface?
|