axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis AxisEngine.java
Date Fri, 22 Jun 2001 13:05:24 GMT
gdaniels    01/06/22 06:05:23

  Modified:    java/src/org/apache/axis AxisEngine.java
  Log:
  Don't save the registry on every deployment at init() time.  Might
  be cleaner to have private internalDeploy() methods instead, but
  this works for now.
  
  Also allow controlling debugging to a file log via the .properties.
  
  Revision  Changes    Path
  1.15      +16 -0     xml-axis/java/src/org/apache/axis/AxisEngine.java
  
  Index: AxisEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisEngine.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AxisEngine.java	2001/06/21 17:15:47	1.14
  +++ AxisEngine.java	2001/06/22 13:05:23	1.15
  @@ -92,6 +92,7 @@
       protected String _serviceRegFilename;
       
       private boolean readRegistryFiles = true;
  +    private boolean dontSaveYet = false;
       
       /** This Engine's global type mappings     */
       protected TypeMappingRegistry _typeMappingRegistry =
  @@ -196,6 +197,9 @@
           
           String propVal = props.getProperty("debugLevel", "0");
           Debug.setDebugLevel(Integer.parseInt(propVal));
  +        
  +        propVal = props.getProperty("debugFile");
  +        Debug.setToFile(propVal != null);
   
           initializeHandlers();
           initializeServices();
  @@ -209,6 +213,8 @@
           tmr.setParent(new SOAPTypeMappingRegistry());
           _typeMappingRegistry = tmr;
           
  +        tmr.init();
  +        
           Debug.Print( 1, "Exit: AxisEngine::init" );
       }
       
  @@ -251,7 +257,9 @@
         }
         
         Debug.Print(2, "Deploying default handlers...");
  +      dontSaveYet = true;
         deployDefaultHandlers();
  +      dontSaveYet = false;
         saveHandlerRegistry();
       }
       
  @@ -293,7 +301,9 @@
         }
         
         Debug.Print(2, "Deploying default services...");
  +      dontSaveYet = true;
         deployDefaultServices();
  +      dontSaveYet = false;
         saveServiceRegistry();
       }
   
  @@ -339,6 +349,9 @@
       
       public void saveHandlerRegistry()
       {
  +      if (dontSaveYet || (_handlerRegFilename == null))
  +        return;
  +      
         try {
           FileOutputStream fos = new FileOutputStream(_handlerRegFilename);
           Document doc = XMLUtils.newDocument();
  @@ -353,6 +366,9 @@
       
       public void saveServiceRegistry()
       {
  +      if (dontSaveYet || (_serviceRegFilename == null))
  +        return;
  +      
         try {
           FileOutputStream fos = new FileOutputStream(_serviceRegFilename);
           Document doc = XMLUtils.newDocument();
  
  
  

Mime
View raw message