User: juha    
  Date: 00/08/20 13:47:20

  Modified:    src/main/org/jboss/ejb ContainerFactory.java
  Log:
  Changes to the listener interface
  
  Revision  Changes    Path
  1.34      +10 -5     jboss/src/main/org/jboss/ejb/ContainerFactory.java
  
  Index: ContainerFactory.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ContainerFactory.java     2000/08/18 22:41:12     1.33
  +++ ContainerFactory.java     2000/08/20 20:47:20     1.34
  @@ -76,7 +76,7 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]">Sebastien Alborini</a>
   *
  -*   @version $Revision: 1.33 $
  +*   @version $Revision: 1.34 $
   */
   public class ContainerFactory
        extends org.jboss.util.ServiceMBeanSupport
  @@ -311,6 +311,7 @@
                        ApplicationMetaData metaData = efm.load();
   
               
  +
                        // Check validity
               Log.setLog(new Log("Verifier"));
               
  @@ -325,8 +326,13 @@
                       verifier.addVerificationListener(new VerificationListener()
                       {
                          public void beanChecked(VerificationEvent event)
  +                       {
  +                           Logger.log(event.getName() + ": " + event.getMessage());
  +                       }
  +                       
  +                       public void specViolation(VerificationEvent event)
                          {
  -                            Logger.log(event.getMessage());
  +                           Logger.log(event.getName() + ": " + event.getMessage());
                          }
                       });
       
  @@ -337,12 +343,11 @@
                   }
               }
               catch (Throwable t) {
  -                //DEBUG Logger.exception(t);
  +                Logger.exception(t);
               }
               
               // unset verifier log
  -            Log.unsetLog();
  -            
  +            Log.unsetLog();                  
   
                        // Get list of beans for which we will create containers
                        Iterator beans = metaData.getEnterpriseBeans();
  
  
  

Reply via email to