commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler BaseModelMBean.java
Date Tue, 08 Apr 2003 04:07:07 GMT
costin      2003/04/07 21:07:07

  Modified:    modeler/src/java/org/apache/commons/modeler
                        BaseModelMBean.java
  Log:
  Deal better with the case when the classes are not local ( either remote
  or native C code )
  
  Revision  Changes    Path
  1.18      +7 -6      jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java
  
  Index: BaseModelMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- BaseModelMBean.java	7 Apr 2003 07:12:02 -0000	1.17
  +++ BaseModelMBean.java	8 Apr 2003 04:07:07 -0000	1.18
  @@ -1250,12 +1250,13 @@
               try {
                   c=Class.forName( type);
               } catch( Throwable t ) {
  -                log.error( "Error creating class " + t);
  +                log.debug( "Error creating class " + t);
               }
   
               // The class c doesn't need to exist
               ManagedBean descriptor=getRegistry().findManagedBean(c, type);
  -
  +            if( descriptor==null ) 
  +                return;
               this.setModelMBeanInfo(descriptor.createMBeanInfo());
           } catch( Throwable ex) {
               log.error( "TCL: " + Thread.currentThread().getContextClassLoader(),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message