Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" 
for change notification.

The following page has been changed by NandaFirdausi:
http://wiki.apache.org/jakarta-tapestry/Tapestry31Spring

------------------------------------------------------------------------------
                <invoke-factory>
                        <construct autowire-services="false"
                                
class="id.co.nincec.dymension.TestingSpringBeanFactoryHolderImpl">
+                                 <event-listener
+                                       
service-id="hivemind.ShutdownCoordinator" />
                                <set-object property="context"
                                        
value="service:tapestry.globals.WebContext"; />
                        </construct>
@@ -50, +52 @@

   * 
   */
  public class TestingSpringBeanFactoryHolderImpl extends
-               SpringBeanFactoryHolderImpl {
+               SpringBeanFactoryHolderImpl implements RegistryShutdownListener 
{
  
        private WebContext context;
  
@@ -69, +71 @@

                }
                return super.getBeanFactory();
        }
+ 
+         public void registryDidShutdown() {
+                ((ConfigurableApplicationContext) 
super.getBeanFactory()).close();
+         }
  
  }
  }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to