axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis AxisEngine.java SimpleTargetedChain.java
Date Tue, 20 Nov 2001 20:27:46 GMT
rubys       01/11/20 12:27:46

  Modified:    java/src/org/apache/axis AxisEngine.java
                        SimpleTargetedChain.java
  Log:
  Eliminate more internationalization overhead in debug messages...
  
  Revision  Changes    Path
  1.54      +9 -3      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.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- AxisEngine.java	2001/11/14 19:59:45	1.53
  +++ AxisEngine.java	2001/11/20 20:27:45	1.54
  @@ -129,7 +129,9 @@
           // !!! Set up default configuration?
           init();
   
  -        category.debug(JavaUtils.getMessage("exit01", "AxisEngine"));
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit01", "AxisEngine"));
  +        }
       }
   
       public AxisEngine(ConfigurationProvider configProvider)
  @@ -142,7 +144,9 @@
        * (re)initialize - What should really go in here???
        */
       public void init() {
  -        category.debug(JavaUtils.getMessage("enter00", "AxisEngine::init"));
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("enter00", "AxisEngine::init"));
  +        }
   
           getTypeMappingRegistry().setParent(SOAPTypeMappingRegistry.getSingleton());
   
  @@ -153,7 +157,9 @@
               throw new NullPointerException(JavaUtils.getMessage("problemDeploying00"));
           }
           
  -        category.debug(JavaUtils.getMessage("exit00", "AxisEngine::init"));
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit00", "AxisEngine::init"));
  +        }
       }
   
       /**
  
  
  
  1.31      +30 -8     xml-axis/java/src/org/apache/axis/SimpleTargetedChain.java
  
  Index: SimpleTargetedChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SimpleTargetedChain.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- SimpleTargetedChain.java	2001/11/06 14:09:07	1.30
  +++ SimpleTargetedChain.java	2001/11/20 20:27:45	1.31
  @@ -95,7 +95,10 @@
        * that has been successfully invoked and then rethrow the fault.
        */
       public void invoke(MessageContext msgContext) throws AxisFault {
  -        category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::invoke") );
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::invoke")
);
  +        }
  +
           if ( requestHandler != null ) requestHandler.invoke( msgContext );
           try {
               if ( pivotHandler != null ) pivotHandler.invoke( msgContext );
  @@ -122,11 +125,17 @@
                   requestHandler.undo( msgContext );
               throw (AxisFault) e ;
           }
  -        category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::invoke") );
  +        
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::invoke")
);
  +        }
       }
   
       public void generateWSDL(MessageContext msgContext) throws AxisFault {
  -        category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::editWSDL")
);
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::editWSDL")
);
  +        }
  +
           if ( requestHandler != null ) requestHandler.generateWSDL( msgContext );
           try {
               if ( pivotHandler != null ) pivotHandler.generateWSDL( msgContext );
  @@ -149,19 +158,28 @@
               if ( !(e instanceof AxisFault ) )
                   e = new AxisFault( e );
               throw (AxisFault) e ;
  +        }
  +
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::editWSDL")
);
           }
  -        category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::editWSDL")
);
       }
   
       /**
        * Undo all of the work - in reverse order.
        */
       public void undo(MessageContext msgContext) {
  -        category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::undo") );
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::undo")
);
  +        }
  +
           if ( responseHandler   != null )   responseHandler.undo( msgContext );
           if ( pivotHandler  != null )  pivotHandler.undo( msgContext );
           if ( requestHandler    != null )    requestHandler.undo( msgContext );
  -        category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::undo") );
  +
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::undo")
);
  +        }
       }
   
       public boolean canHandleBlock(QName qname) {
  @@ -199,12 +217,16 @@
       }
   
       public Element getDeploymentData(Document doc) {
  -        category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::getDeploymentData")
);
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("enter00", "SimpleTargetedChain::getDeploymentData")
);
  +        }
   
           Element   root = doc.createElementNS("", "chain");
           fillInDeploymentData(root);
   
  -        category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::getDeploymentData")
);
  +        if (category.isDebugEnabled()) {
  +            category.debug(JavaUtils.getMessage("exit00", "SimpleTargetedChain::getDeploymentData")
);
  +        }
           return( root );
       }
   
  
  
  

Mime
View raw message