User: schaefera
  Date: 01/07/19 18:03:13

  Modified:    src/etc  class.java interface.java
  Log:
  Adjusted the identation to the specified indentation of 3 spaces.
  
  Revision  Changes    Path
  1.7       +77 -72    jboss/src/etc/class.java
  
  Index: class.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/etc/class.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- class.java        2001/07/13 19:11:32     1.6
  +++ class.java        2001/07/20 01:03:13     1.7
  @@ -20,7 +20,7 @@
   *   @see <related>
   *   @author  <a href="mailto:{email}";>{full name}</a>.
   *   @author  <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -*   @version $Revision: 1.6 $
  +*   @version $Revision: 1.7 $
   *   
   *   <p><b>Revisions:</b>
   *
  @@ -33,6 +33,11 @@
   *   <ul>
   *   <li> Ask all developers to clearly document the Revision, changed the header.  
   *   </ul>
  +*   <p><b>20010719 andreas schaefer:</b>
  +*   <ul>
  +*   <li> Changed indentation to 3 spaces to go along with the guidelines and 
removed second comment
  +*        about this to avoid confusion.
  +*   </ul>
   */
   
   
  @@ -42,79 +47,79 @@
   extends Y
   implements Z
   {
  -  // Constants -----------------------------------------------------
  -  
  -  // Attributes ----------------------------------------------------
  -  
  -  // Static --------------------------------------------------------
  -  
  -  // Constructors --------------------------------------------------
  -  
  -  // Public --------------------------------------------------------
  -  
  -  public void startService() throws Exception
  -  { // Use the newline for the opening bracket so we can match top and bottom 
bracket visually
  -    
  -    Class cls = Class.forName(dataSourceClass);
  -    vendorSource = (XADataSource)cls.newInstance();
  -    
  -    // JUMP A LINE BETWEEN LOGICALLY DISCTINT **STEPS** AND ADD A LINE OF COMMENT 
TO IT
  -    cls = vendorSource.getClass();
  -    
  -    if(properties != null && properties.length() > 0)
  -    {
  +   // Constants -----------------------------------------------------
  +   
  +   // Attributes ----------------------------------------------------
  +   
  +   // Static --------------------------------------------------------
  +   
  +   // Constructors --------------------------------------------------
  +   
  +   // Public --------------------------------------------------------
  +   
  +   public void startService() throws Exception
  +   { // Use the newline for the opening bracket so we can match top and bottom 
bracket visually
         
  -      try
  -      {
  -      }
  -      catch (IOException ioe)
  -      {
  -      }
  -      for (Iterator i = props.entrySet().iterator(); i.hasNext();)
  +      Class cls = Class.forName(dataSourceClass);
  +      vendorSource = (XADataSource)cls.newInstance();
  +      
  +      // JUMP A LINE BETWEEN LOGICALLY DISCTINT **STEPS** AND ADD A LINE OF COMMENT 
TO IT
  +      cls = vendorSource.getClass();
  +      
  +      if(properties != null && properties.length() > 0)
         {
  -        
  -        // Get the name and value for the attributes
  -        Map.Entry entry = (Map.Entry) i.next();
  -        String attributeName = (String) entry.getKey();
  -        String attributeValue = (String) entry.getValue();
  -        
  -        // Print the debug message
  -        log.debug("Setting attribute '" + attributeName + "' to '" +
  -          attributeValue + "'");
  -        
  -        // get the attribute 
  -        Method setAttribute =
  -        cls.getMethod("set" + attributeName,
  -          new Class[] { String.class });
  -        
  -        // And set the value  
  -        setAttribute.invoke(vendorSource,
  -          new Object[] { attributeValue });
  +      
  +         try
  +         {
  +         }
  +         catch (IOException ioe)
  +         {
  +         }
  +         for (Iterator i = props.entrySet().iterator(); i.hasNext();)
  +         {
  +            
  +            // Get the name and value for the attributes
  +            Map.Entry entry = (Map.Entry) i.next();
  +            String attributeName = (String) entry.getKey();
  +            String attributeValue = (String) entry.getValue();
  +            
  +            // Print the debug message
  +            log.debug("Setting attribute '" + attributeName + "' to '" +
  +               attributeValue + "'");
  +            
  +            // get the attribute 
  +            Method setAttribute =
  +            cls.getMethod("set" + attributeName,
  +               new Class[] { String.class });
  +            
  +            // And set the value  
  +            setAttribute.invoke(vendorSource,
  +               new Object[] { attributeValue });
  +         }
         }
  -    }
  -    
  -    
  -    // Test database
  -    vendorSource.getXAConnection().close();
  -    
  -    // Bind in JNDI
  -    bind(new InitialContext(), "java:/"+getPoolName(),
  -      new Reference(vendorSource.getClass().getName(),
  -        getClass().getName(), null));
  -    
  -    // We are done
  -    log.log("XA Data source "+getPoolName()+" bound to java:/"+getPoolName());
  -  }
  -  // Z implementation ----------------------------------------------
  -  
  -  // Y overrides ---------------------------------------------------
  -  
  -  // Package protected ---------------------------------------------
  -  
  -  // Protected -----------------------------------------------------
  -  
  -  // Private -------------------------------------------------------
  -  
  -  // Inner classes -------------------------------------------------
  +      
  +      
  +      // Test database
  +      vendorSource.getXAConnection().close();
  +      
  +      // Bind in JNDI
  +      bind(new InitialContext(), "java:/"+getPoolName(),
  +         new Reference(vendorSource.getClass().getName(),
  +            getClass().getName(), null));
  +      
  +      // We are done
  +      log.log("XA Data source "+getPoolName()+" bound to java:/"+getPoolName());
  +   }
  +   // Z implementation ----------------------------------------------
  +   
  +   // Y overrides ---------------------------------------------------
  +   
  +   // Package protected ---------------------------------------------
  +   
  +   // Protected -----------------------------------------------------
  +   
  +   // Private -------------------------------------------------------
  +   
  +   // Inner classes -------------------------------------------------
   }
   
  
  
  
  1.5       +14 -10    jboss/src/etc/interface.java
  
  Index: interface.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/etc/interface.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- interface.java    2001/07/03 22:47:38     1.4
  +++ interface.java    2001/07/20 01:03:13     1.5
  @@ -21,7 +21,7 @@
   *   @see <related>
   *   @author  <a href="mailto:{email}";>{full name}</a>.
   *   @author  <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -*   @version $Revision: 1.4 $
  +*   @version $Revision: 1.5 $
   *   Revisions:
   *
   *   <p><b>Revisions:</b>
  @@ -35,6 +35,11 @@
   *   <ul>
   *   <li> Ask all developers to clearly document the Revision, changed the header.  
   *   </ul>
  +*   <p><b>20010719 andreas schaefer:</b>
  +*   <ul>
  +*   <li> Changed indentation to 3 spaces to go along with the guidelines and 
removed second comment
  +*        about this to avoid confusion.
  +*   </ul>
   */
   
   
  @@ -43,13 +48,12 @@
   public interface X
   extends Y
   {
  -  // Constants -----------------------------------------------------
  -  
  -  // Static --------------------------------------------------------
  -  
  -  // Public --------------------------------------------------------
  -  public ReturnClass doSomething()
  -  throws ExceptionA, ExceptionB;
  -  
  -  // DO NOT USE "TAB" USE 2 SPACES FOR PORTABILITY AMONG EDITORS
  +   // Constants -----------------------------------------------------
  +   
  +   // Static --------------------------------------------------------
  +   
  +   // Public --------------------------------------------------------
  +   public ReturnClass doSomething()
  +   throws ExceptionA, ExceptionB;
  +   
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to