avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application BlockEntry.java
Date Fri, 10 May 2002 11:45:56 GMT
donaldp     02/05/10 04:45:56

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        BlockEntry.java
  Log:
  Make sure that entry is invalidated when object in entry is changed.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/BlockEntry.java
  
  Index: BlockEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/BlockEntry.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BlockEntry.java	24 Mar 2002 12:18:25 -0000	1.5
  +++ BlockEntry.java	10 May 2002 11:45:56 -0000	1.6
  @@ -52,18 +52,18 @@
   
       public synchronized void setBlock( final Block block )
       {
  -        m_block = block;
  -
  -        if( null == block )
  +        if( null != m_block )
           {
  -            m_invocationHandler = null;
  +            invalidate();
           }
  -        else
  +
  +        if( null != block )
           {
               final BlockInfo blockInfo = getMetaData().getBlockInfo();
               final Class[] interfaces = getServiceClasses( block, blockInfo.getServices()
);
   
               m_invocationHandler = new BlockInvocationHandler( block, interfaces );
  +            m_block = block;
           }
       }
   
  
  
  

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


Mime
View raw message