donaldp     02/04/25 23:44:57

  Modified:    aut/src/java/org/apache/aut/jprocess DemuxProperties.java
  Log:
  Make bindProperties return the old Property object associated with thread.
  
  This enables us to restore state later on by calling bindProperties() with 
old Properties object.
  
  Revision  Changes    Path
  1.3       +4 -2      
jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/DemuxProperties.java
  
  Index: DemuxProperties.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/DemuxProperties.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DemuxProperties.java      26 Apr 2002 03:01:21 -0000      1.2
  +++ DemuxProperties.java      26 Apr 2002 06:44:57 -0000      1.3
  @@ -17,7 +17,7 @@
    * properties that has been associated with this thread.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/04/26 03:01:21 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/26 06:44:57 $
    */
   public final class DemuxProperties
       extends Properties
  @@ -38,9 +38,11 @@
        *
        * @param properties the Properties object to bind
        */
  -    public void bindProperties( final Properties properties )
  +    public Properties bindProperties( final Properties properties )
       {
  +        final Properties oldProperties = (Properties)m_properties.get();
           m_properties.set( properties );
  +        return oldProperties;
       }
   
       public Object get( final Object key )
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to