On Sunday 02 October 2005 21:32, Richard S. Hall wrote: > When a handler proxy is invoked it could use > SecurityManager.getClassContext() to get the call stack of classes and > walk up the call stack to get the first class that is loaded from a > bundle class loader.
You realize that this is a very expensive procedure? Not sure exactly when you mean the above should take place, but it sounds like "very often"... IMHO, the only reasonable approach is to share the handlers within the JVM (i.e. solution 2). Better yet if the sharing mechanism could be used (or cooperating with) the world "outside" OSGi. Cheers Niclas