geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r808733 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java
Date Fri, 28 Aug 2009 02:25:51 GMT
Author: gawor
Date: Fri Aug 28 02:25:50 2009
New Revision: 808733

URL: http://svn.apache.org/viewvc?rev=808733&view=rev
Log:
set listeners once we done initialing them

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java?rev=808733&r1=808732&r2=808733&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/AbstractServiceReferenceRecipe.java
Fri Aug 28 02:25:50 2009
@@ -193,7 +193,7 @@
     protected void createListeners() {
         try {
             if (listenersRecipe != null) {
-                listeners = (List<Listener>) listenersRecipe.create();
+                List<Listener> listeners = (List<Listener>) listenersRecipe.create();
                 for (Listener listener : listeners) {
                     List<Class> cl = new ArrayList<Class>();
                     if (metadata.getInterface() != null) {
@@ -203,8 +203,9 @@
                     }
                     listener.init(cl);
                 }
+                this.listeners = listeners;
             } else {
-                listeners = Collections.emptyList();
+                this.listeners = Collections.emptyList();
             }
         } catch (ClassNotFoundException e) {
             throw new ComponentDefinitionException(e);



Mime
View raw message