avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application DefaultApplication.java
Date Fri, 02 Aug 2002 18:40:48 GMT
proyal      2002/08/02 11:40:48

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        DefaultApplication.java
  Log:
  Only load listeners once.
  
  The "proper" solution is to remove all listeners when stop()'ing
  
  Revision  Changes    Path
  1.33      +11 -3     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultApplication.java
  
  Index: DefaultApplication.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultApplication.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- DefaultApplication.java	30 Jul 2002 12:19:14 -0000	1.32
  +++ DefaultApplication.java	2 Aug 2002 18:40:48 -0000	1.33
  @@ -94,6 +94,17 @@
       public void initialize()
           throws Exception
       {
  +        try
  +        {
  +            // load block listeners
  +            loadBlockListeners();
  +        }
  +        catch( final Throwable t )
  +        {
  +            getLogger().info( "exception while loading listeners:" + t.getMessage() + "\n"
);
  +            t.printStackTrace();
  +            throw new ApplicationException( t.getMessage(), t );
  +        }
       }
   
       /**
  @@ -126,9 +137,6 @@
                       final BlockEntry blockEntry = new BlockEntry( blocks[ i ] );
                       m_entries.put( blockName, blockEntry );
                   }
  -
  -                // load block listeners
  -                loadBlockListeners();
   
                   // load blocks
                   runPhase( PHASE_STARTUP );
  
  
  

--
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