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

 

  1. 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.
  2. 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…

 

  1. We can’t put service interceptors on non-public (or protected) methods, correct?
  2. 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?

 

 

Reply via email to