rleland     2002/11/25 18:44:15

  Modified:    src/example/org/apache/struts/webapp/example/memory
                        MemoryDatabasePlugIn.java
  Log:
  Update example to use ModuleConfig
  
  Revision  Changes    Path
  1.5       +7 -12     
jakarta-struts/src/example/org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java
  
  Index: MemoryDatabasePlugIn.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/example/org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MemoryDatabasePlugIn.java 18 Oct 2002 15:27:42 -0000      1.4
  +++ MemoryDatabasePlugIn.java 26 Nov 2002 02:44:15 -0000      1.5
  @@ -69,17 +69,12 @@
   import java.io.FileOutputStream;
   import java.io.InputStream;
   import javax.servlet.ServletException;
  -import javax.servlet.UnavailableException;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.struts.action.ActionServlet;
   import org.apache.struts.action.PlugIn;
  -import org.apache.struts.config.ApplicationConfig;
  +import org.apache.struts.config.ModuleConfig;
   import org.apache.struts.webapp.example.Constants;
  -import org.apache.struts.webapp.example.Subscription;
  -import org.apache.struts.webapp.example.User;
  -import org.apache.struts.webapp.example.UserDatabase;
  -
   
   /**
    * <p><strong>MemoryDatabasePlugIn</strong> initializes and finalizes the
  @@ -108,7 +103,7 @@
       /**
        * The application configuration for our owning module.
        */
  -    private ApplicationConfig config = null;
  +    private ModuleConfig config = null;
   
   
       /**
  @@ -183,7 +178,7 @@
        *
        * @exception ServletException if we cannot configure ourselves correctly
        */
  -    public void init(ActionServlet servlet, ApplicationConfig config)
  +    public void init(ActionServlet servlet, ModuleConfig config)
           throws ServletException {
   
           log.info("Initializing memory database plug in from '" +
  
  
  

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

Reply via email to