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 ApplicationListenerSupport.java
Date Sun, 19 May 2002 00:38:06 GMT
donaldp     02/05/18 17:38:06

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        ApplicationListenerSupport.java
  Log:
  Add helper method to transmit appstarting event for app represented by specific MetaData
  
  Revision  Changes    Path
  1.3       +8 -0      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/ApplicationListenerSupport.java
  
  Index: ApplicationListenerSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/ApplicationListenerSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ApplicationListenerSupport.java	16 Mar 2002 00:11:54 -0000	1.2
  +++ ApplicationListenerSupport.java	19 May 2002 00:38:06 -0000	1.3
  @@ -9,6 +9,7 @@
   
   import org.apache.avalon.phoenix.ApplicationEvent;
   import org.apache.avalon.phoenix.ApplicationListener;
  +import org.apache.avalon.phoenix.metadata.SarMetaData;
   
   /**
    * Manage a set of <code>ApplicationListener</code> objects and propogate
  @@ -59,6 +60,13 @@
               final int length = m_listeners.length - index - 1;
               System.arraycopy( m_listeners, index + 1, listeners, index, length );
           }
  +    }
  +
  +    void fireApplicationStartingEvent( final SarMetaData metaData )
  +    {
  +        final ApplicationEvent event =
  +            new ApplicationEvent( metaData.getName(), metaData );
  +        applicationStarting( event );
       }
   
       /**
  
  
  

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