geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx CollectionProxy.java
Date Sat, 17 Jan 2004 16:59:20 GMT
djencks     2004/01/17 08:59:20

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean/jmx
                        CollectionProxy.java
  Log:
  send the proxy, not the object name, in the event
  
  Revision  Changes    Path
  1.6       +5 -4      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/CollectionProxy.java
  
  Index: CollectionProxy.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/CollectionProxy.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CollectionProxy.java	17 Jan 2004 01:07:33 -0000	1.5
  +++ CollectionProxy.java	17 Jan 2004 16:59:20 -0000	1.6
  @@ -167,9 +167,10 @@
               ProxyMethodInterceptor interceptor = new ProxyMethodInterceptor(factory.getClass());
               interceptor.connect(gmbean.getServer(), target, proxy.isStopped());
               interceptors.put(target, interceptor);
  -            proxies.put(target, factory.newInstance(interceptor));
  +            Factory targetProxy = factory.newInstance(interceptor);
  +            proxies.put(target, targetProxy);
               if (!stopped) {
  -                proxy.fireMemberAdddedEvent(target);
  +                proxy.fireMemberAdddedEvent(targetProxy);
               }
           }
       }
  @@ -182,7 +183,7 @@
                   interceptor.disconnect();
               }
               if (!stopped) {
  -                proxy.fireMemberRemovedEvent(target);
  +                proxy.fireMemberRemovedEvent(targetProxy);
               }
           }
       }
  
  
  

Mime
View raw message