You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/08 01:24:30 UTC

cvs commit: jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler AbstractComponentHandler.java PerThreadComponentHandler.java ThreadSafeComponentHandler.java

donaldp     2002/11/07 16:24:30

  Modified:    fortress/src/java/org/apache/excalibur/fortress/handler
                        AbstractComponentHandler.java
                        PerThreadComponentHandler.java
                        ThreadSafeComponentHandler.java
  Log:
  Push up empty doPut() method to suberclass and remove empty methods decls from subclasses.
  
  Revision  Changes    Path
  1.24      +4 -3      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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- AbstractComponentHandler.java	8 Nov 2002 00:23:18 -0000	1.23
  +++ AbstractComponentHandler.java	8 Nov 2002 00:24:29 -0000	1.24
  @@ -251,8 +251,9 @@
        *
        * @param component the component
        */
  -    protected abstract void doPut( final Object component );
  -
  +    protected void doPut( final Object component )
  +    {
  +    }
   
       /**
        * Dispose of the specified component.
  
  
  
  1.35      +1 -6      jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PerThreadComponentHandler.java
  
  Index: PerThreadComponentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/PerThreadComponentHandler.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- PerThreadComponentHandler.java	8 Nov 2002 00:21:43 -0000	1.34
  +++ PerThreadComponentHandler.java	8 Nov 2002 00:24:29 -0000	1.35
  @@ -103,11 +103,6 @@
           return instance;
       }
   
  -    protected void doPut( Object component )
  -    {
  -        //Do nothing
  -    }
  -
       protected void doDispose()
       {
           disposeComponent( m_instance );
  
  
  
  1.34      +1 -6      jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/ThreadSafeComponentHandler.java
  
  Index: ThreadSafeComponentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/ThreadSafeComponentHandler.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ThreadSafeComponentHandler.java	8 Nov 2002 00:21:43 -0000	1.33
  +++ ThreadSafeComponentHandler.java	8 Nov 2002 00:24:29 -0000	1.34
  @@ -107,11 +107,6 @@
           return m_instance;
       }
   
  -    protected void doPut( Object component )
  -    {
  -        //do nothing
  -    }
  -
       /**
        * Dispose of the ComponentHandler and any associated Pools and Factories.
        */
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>