That's what I guessed. Thanks for the information, I already suggested that he use a custom BuilderFactory but intercepting the existing ones is even less intrusive when you have existing XML. Great idea.
Cheers, Johan Maasing 2009/9/25 Raffael Herzog <her...@raffael.ch>: > Am Freitag, 25. September 2009 15.03:40 schrieb Johan Maasing: >> Hi Gaderian folks, >> I do not have the source readily available so just a quick question if >> someone knows without looking. Is there some hook that you can use to >> decorate all services with a proxy? Regardless of how they were >> created. Sort of like postprocessing in Spring. I got the question >> from a friend that wants to force a lot of services to have an >> interceptor but does not want to write a lot of interceptor-tags in >> the XML. > > No there's no such thing. What he can do, however, is to intercept > BuilderFactory (and possibly other factories he's using) do add an > interceptor gobally, I did that myself in HiveApp. Using this method, it's > important to understand that this interceptor should implement and delegate > all methods of all interfaces, that the class implements, not just the > service interface. That's because if he adds interceptors this way, all > event listener interfaces would get lost, so <event-listener>, > RegistryShutdownListener and the likes wouldn't work. All interfaces that > are not the service interface will still be masked out by the service > model. > > Please file a feature request in JIRA. > > Cheers, > Raffi > > -- > The difference between theory and practice is that in theory, there is > no difference, but in practice, there is. > > her...@raffael.ch · Jabber: her...@raffael.ch > PGP Key 0x5FFDB5DB5D1FF5F4 · http://keyserver.pgp.com > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general