You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by pi...@apache.org on 2004/11/01 16:00:35 UTC

svn commit: rev 56237 - cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime

Author: pier
Date: Mon Nov  1 07:00:34 2004
New Revision: 56237

Modified:
   cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Deployer.java
Log:
When we instantiate a component, it is better if we pass it back to the requestor

Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Deployer.java
==============================================================================
--- cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Deployer.java	(original)
+++ cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Deployer.java	Mon Nov  1 07:00:34 2004
@@ -121,7 +121,7 @@
         /* Prepare wiring and component */
         Object component = this.singletons.get(instance);
         if (component == null) try {
-            this.instantiate(name, instance);
+            component = this.instantiate(name, instance);
         } catch (Throwable t) {
             throw new KernelException("Unable to create non-singleton component "
                     + " instance for block \"" + instance.getBlock().toString()