larryi      02/02/04 17:30:29

  Modified:    src/share/org/apache/tomcat/modules/config AutoWebApp.java
  Log:
  Add a reloadable attribute so auto-served contexts can be easily configured
  to have reloading enabled or disabled.
  
  This was added because the ReloadInterceptor can't be removed when
  running Tomcat under a security manager.  The DependClassLoader it
  creates handles the ProtectionDomain created for each web application.
  Instead, you must disable reloading for each context instead of removing the
  ReloadInterceptor to gain a performance benefit.
  
  Revision  Changes    Path
  1.11      +6 -0      
jakarta-tomcat/src/share/org/apache/tomcat/modules/config/AutoWebApp.java
  
  Index: AutoWebApp.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/AutoWebApp.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AutoWebApp.java   14 Nov 2001 03:01:16 -0000      1.10
  +++ AutoWebApp.java   5 Feb 2002 01:30:29 -0000       1.11
  @@ -89,6 +89,7 @@
       String profile=null;
       boolean trusted=false;
       String prefix="";
  +    boolean reloadable=true;
       
       // encoding scheme - XXX review, customize, implement
       char hostSeparator='@'; // if support for vhost configuration is enabled
  @@ -159,6 +160,10 @@
       public void setTrusted( boolean b ) {
        trusted=b;
       }
  +
  +    public void setReloadable( boolean b ) {
  +        reloadable=b;
  +    }
       
       //-------------------- Implementation --------------------
       
  @@ -256,6 +261,7 @@
            Context ctx=cm.createContext();
            ctx.setContextManager( cm );
            ctx.setPath(prefix + path);
  +            ctx.setReloadable(reloadable);
            if( ! "DEFAULT".equals( host ) )
                ctx.setHost( host );
            try {
  
  
  

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

Reply via email to