You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by pr...@apache.org on 2002/06/17 20:54:28 UTC

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

proyal      2002/06/17 11:54:28

  Modified:    fortress/src/java/org/apache/excalibur/fortress/handler
                        ThreadSafeComponentHandler.java
  Log:
   * Synchronized the initialization of the handler. If you have asynchronous
  initialization going w/Fortress and a client attempts a lookup on a
  component it is possible for it to get initialized twice.
  
  Revision  Changes    Path
  1.15      +2 -2      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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ThreadSafeComponentHandler.java	5 Jun 2002 17:06:48 -0000	1.14
  +++ ThreadSafeComponentHandler.java	17 Jun 2002 18:54:27 -0000	1.15
  @@ -48,7 +48,7 @@
       /**
        * Initialize the ComponentHandler.
        */
  -    public void initialize()
  +    public synchronized void initialize()
           throws Exception
       {
           if( m_initialized )
  
  
  

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