donaldp     2002/11/07 16:23:18

  Modified:    fortress/src/java/org/apache/excalibur/fortress/handler
                        AbstractComponentHandler.java
                        FactoryComponentHandler.java
                        PoolableComponentHandler.java
  Log:
  Push up empty doDispose method to superclass and remove from subclasses.
  
  Revision  Changes    Path
  1.23      +8 -2      
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/AbstractComponentHandler.java
  
  Index: AbstractComponentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/AbstractComponentHandler.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- AbstractComponentHandler.java     8 Nov 2002 00:21:43 -0000       1.22
  +++ AbstractComponentHandler.java     8 Nov 2002 00:23:18 -0000       1.23
  @@ -297,7 +297,13 @@
           m_disposed = true;
       }
   
  -    protected abstract void doDispose();
  +    /**
  +     * Dispose handler specific resources.
  +     * Subclasses should overide this to provide their own funcitonality.
  +     */
  +    protected void doDispose()
  +    {
  +    }
   
       /**
        * Represents the handler as a string.
  
  
  
  1.32      +1 -5      
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/FactoryComponentHandler.java
  
  Index: FactoryComponentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/FactoryComponentHandler.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- FactoryComponentHandler.java      8 Nov 2002 00:21:43 -0000       1.31
  +++ FactoryComponentHandler.java      8 Nov 2002 00:23:18 -0000       1.32
  @@ -100,8 +100,4 @@
       {
           disposeComponent( component );
       }
  -
  -    protected void doDispose()
  -    {
  -    }
   }
  
  
  
  1.35      +1 -5      
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PoolableComponentHandler.java
  
  Index: PoolableComponentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PoolableComponentHandler.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- PoolableComponentHandler.java     8 Nov 2002 00:21:43 -0000       1.34
  +++ PoolableComponentHandler.java     8 Nov 2002 00:23:18 -0000       1.35
  @@ -123,8 +123,4 @@
       {
           m_pool.release( component );
       }
  -
  -    protected void doDispose()
  -    {
  -    }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>

Reply via email to