1 22 package org.jboss.mx.util; 23 24 import java.lang.reflect.Method ; 25 26 import javax.management.InstanceNotFoundException ; 27 import javax.management.AttributeNotFoundException ; 28 import javax.management.InvalidAttributeValueException ; 29 import javax.management.MBeanException ; 30 import javax.management.ReflectionException ; 31 import javax.management.RuntimeOperationsException ; 32 import javax.management.RuntimeMBeanException ; 33 import javax.management.RuntimeErrorException ; 34 35 40 public interface ProxyExceptionHandler 41 { 42 public Object handleInstanceNotFound(ProxyContext ctx, InstanceNotFoundException e, Method m, Object [] args) throws Exception ; 43 44 public Object handleAttributeNotFound(ProxyContext ctx, AttributeNotFoundException e, Method m, Object [] args) throws Exception ; 45 46 public Object handleInvalidAttributeValue(ProxyContext ctx, InvalidAttributeValueException e, Method m, Object [] args) throws Exception ; 47 48 public Object handleMBeanException(ProxyContext ctx, MBeanException e, Method m, Object [] args) throws Exception ; 49 50 public Object handleReflectionException(ProxyContext ctx, ReflectionException e, Method m, Object [] args) throws Exception ; 51 52 public Object handleRuntimeOperationsException(ProxyContext ctx, RuntimeOperationsException e, Method m, Object [] args) throws Exception ; 53 54 public Object handleRuntimeMBeanException(ProxyContext ctx, RuntimeMBeanException e, Method m, Object [] args) throws Exception ; 55 56 public Object handleRuntimeError(ProxyContext ctx, RuntimeErrorException e, Method m, Object [] args) throws Exception ; 57 } 58 59 60 61 62 | Popular Tags |