avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msch...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/fortress/examples/src/java/org/apache/excalibur/fortress/examples/servlet servlet.java
Date Mon, 30 Dec 2002 23:12:19 GMT
mschier     2002/12/30 15:12:19

  Modified:    fortress/examples/src/java/org/apache/excalibur/fortress/examples/servlet
                        servlet.java
  Log:
  Use ContainerUtil to dispose and initialize ContainerManager. Alternatively could use DefaultContainerManager
which is faster, but more concise.
  
  Revision  Changes    Path
  1.11      +6 -3      jakarta-avalon-excalibur/fortress/examples/src/java/org/apache/excalibur/fortress/examples/servlet/servlet.java
  
  Index: servlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/examples/src/java/org/apache/excalibur/fortress/examples/servlet/servlet.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- servlet.java	10 Nov 2002 16:18:23 -0000	1.10
  +++ servlet.java	30 Dec 2002 23:12:19 -0000	1.11
  @@ -50,10 +50,13 @@
   package org.apache.excalibur.fortress.examples.servlet;
   
   import java.io.IOException;
  +
   import javax.servlet.ServletException;
   import javax.servlet.ServletRequest;
   import javax.servlet.ServletResponse;
   import javax.servlet.http.HttpServlet;
  +
  +import org.apache.avalon.framework.container.ContainerUtil;
   import org.apache.excalibur.fortress.ContainerManager;
   import org.apache.excalibur.fortress.DefaultContainerManager;
   import org.apache.excalibur.fortress.util.FortressConfig;
  @@ -90,7 +93,7 @@
               config.setRoleManagerConfiguration( "resource://org/apache/excalibur/fortress/examples/servlet/ServletContainer.roles"
);
   
               m_containerManager = new DefaultContainerManager( config.getContext() );
  -            m_containerManager.initialize();
  +            ContainerUtil.initialize(m_containerManager);
   
               m_container = (ServletContainer)m_containerManager.getContainer();
           }
  @@ -122,6 +125,6 @@
        */
       public void destroy()
       {
  -        m_containerManager.dispose();
  +        ContainerUtil.dispose(m_containerManager);
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message