User: juhalindfors Date: 02/04/12 16:03:45 Modified: src/main/javax/management/relation RelationSupport.java Log: changed exceptation handling slightly due to modified proxy Revision Changes Path 1.5 +14 -10 jmx/src/main/javax/management/relation/RelationSupport.java Index: RelationSupport.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/javax/management/relation/RelationSupport.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- RelationSupport.java 16 Feb 2002 10:29:55 -0000 1.4 +++ RelationSupport.java 12 Apr 2002 23:03:45 -0000 1.5 @@ -24,6 +24,7 @@ import javax.management.relation.RelationServiceMBean; import org.jboss.mx.util.MBeanProxy; +import org.jboss.mx.util.MBeanProxyCreationException; /** * Implements the management interface for a relation @@ -34,7 +35,18 @@ * extending it, and then registered with the relation service.<p> * * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>. - * @version $Revision: 1.4 $ + * @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a> + * + * @version $Revision: 1.5 $ + * + * <p><b>Revisions:</b> + * + * <p><b>20020412 Juha Lindfors:</b> + * <ul> + * <li>Changed MBeanProxy exception handling on create methods -- only need to + * catch one MBeanProxyCreationException + * </li> + * </ul> */ public class RelationSupport implements RelationSupportMBean, MBeanRegistration @@ -594,17 +606,9 @@ serviceProxy = (RelationServiceMBean) MBeanProxy.get( RelationServiceMBean.class, relationService, server); } - catch (InstanceNotFoundException e) + catch (MBeanProxyCreationException e) { throw new RelationServiceNotRegisteredException(e.toString()); - } - catch (IntrospectionException e) - { - throw new RuntimeException(e.toString()); - } - catch (ReflectionException e) - { - throw new RuntimeException(e.toString()); } } }
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development