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()

Reply via email to