Quote:
Have a look at the chained interceptor design pattern in the wiki area
1) Yes, this would solve my problem.
I would still prefer a "per-class" based solution in the configuration, though: if i get it right, with ChainedInterceptor I have to do something like:
Code:
ChainedInterceptor inter;
Interceptor[] interceptors;
// fill the array with every interceptor
[..]
inter.setInterceptors(interceptors)
cfg.setInterceptor(inter);
so every time I want to add an interceptor for a particular class I have to add it to the list of interceptors, rather then simply configure a persistent lifecycle callback class in the class configuration...
2) why some (a lot, actually) of the documents in the wiki area aren't well parsed? I mean, I can't print them properly because they are too "large" (the browser doesn't wrap the lines, I don't know why).
Thank you again.