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 LifecycleHelper.java Resources.properties
Date Tue, 14 May 2002 09:17:41 GMT
donaldp     02/05/14 02:17:41

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        LifecycleHelper.java Resources.properties
  Log:
  Add some visual feedback when running Phoenix if
  you are using the deprecated BlockListener
  
  Revision  Changes    Path
  1.37      +9 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/LifecycleHelper.java
  
  Index: LifecycleHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/LifecycleHelper.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- LifecycleHelper.java	11 May 2002 06:35:26 -0000	1.36
  +++ LifecycleHelper.java	14 May 2002 09:17:41 -0000	1.37
  @@ -147,7 +147,15 @@
           {
               m_applicationListenerSupport.addApplicationListener( (ApplicationListener)listener
);
           }
  -
  +        else
  +        {
  +            final String message =
  +                REZ.getString( "helper.isa-blocklistener.error",
  +                               name,
  +                               metaData.getClassname() );
  +            getLogger().error( message );
  +            System.err.println( message );
  +        }
       }
   
       public void applicationStarting( ApplicationEvent appEvent ) throws Exception
  
  
  
  1.20      +1 -0      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/Resources.properties,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Resources.properties	12 Jan 2002 02:30:22 -0000	1.19
  +++ Resources.properties	14 May 2002 09:17:41 -0000	1.20
  @@ -17,3 +17,4 @@
   #BlockContext Messages
   context.warn.threadpool=Warning: Accessing ThreadPools via BlockContext.getThreadPool()\nor
BlockContext.getDefaultThreadPool() is a deprecated feature\nand developers should instead
use a ThreadManager Block to access\nThreadPools.
   
  +helper.isa-blocklistener.error=Warning: Using deprecated BlockListener interface for listener
named "{0}" with classname "{1}".
  \ No newline at end of file
  
  
  

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