Author: mes
Date: 2010-08-17 13:02:08 -0700 (Tue, 17 Aug 2010)
New Revision: 21410

Modified:
   
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
Log:
fixed classloader problem

Modified: 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
===================================================================
--- 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
       2010-08-17 19:46:54 UTC (rev 21409)
+++ 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
       2010-08-17 20:02:08 UTC (rev 21410)
@@ -85,8 +85,7 @@
        }
 
        private Object noOpProxy( Class c ) {
-               return Proxy.newProxyInstance(this.getClass().getClassLoader(), 
-                                             new Class[] { c }, new 
ListenerHandler());
+               return Proxy.newProxyInstance(c.getClassLoader(), new Class[] { 
c }, new ListenerHandler());
        }
 
        // This customizer takes newly registered services of the specified 
class
@@ -124,7 +123,7 @@
                                Map<Class<?>,Object> sourceProxys = 
proxys.get(source);
                                if ( !sourceProxys.containsKey( clazz ) )
                                        sourceProxys.put( clazz,  
-                                                         
Proxy.newProxyInstance(this.getClass().getClassLoader(), 
+                                                         
Proxy.newProxyInstance(clazz.getClassLoader(), 
                                                                                
                 new Class[] { clazz }, 
                                                                                
                                         new 
ListenerHandler(listenerServices)));
                        }

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to