avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component DefaultComponentFactory.java
Date Thu, 01 May 2003 10:21:39 GMT
leosutic    2003/05/01 03:21:38

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        DefaultComponentFactory.java
  Log:
  Made the factory create backwards-compatible proxies. As it was, the pooling
  code broke due to the proxy (which was pooled) didn't implement Poolable.
  Since the proxy didn't implement Recyclable either, that got messed up
  as well.
  
  Revision  Changes    Path
  1.22      +5 -5      avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java
  
  Index: DefaultComponentFactory.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DefaultComponentFactory.java	5 Apr 2003 19:39:34 -0000	1.21
  +++ DefaultComponentFactory.java	1 May 2003 10:21:38 -0000	1.22
  @@ -344,7 +344,7 @@
           Component returnableComponent;
           if( !( component instanceof Component ) )
           {
  -            returnableComponent = m_proxyGenerator.getProxy( m_role, component );
  +            returnableComponent = m_proxyGenerator.getCompatibleProxy( component );
               m_componentProxies.put( returnableComponent, component );
           }
           else
  @@ -355,12 +355,12 @@
           return returnableComponent;
       }
   
  -    public final Class getCreatedClass()
  +    public Class getCreatedClass()
       {
           return m_componentClass;
       }
   
  -    public final void decommission( final Object component )
  +    public void decommission( final Object component )
           throws Exception
       {
           if( getLogger().isDebugEnabled() )
  @@ -401,7 +401,7 @@
       /*---------------------------------------------------------------
        * Disposable Methods
        *-------------------------------------------------------------*/
  -    public final void dispose()
  +    public void dispose()
       {
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message