org.jboss.seam.jmx
Class DefaultExceptionHandler

java.lang.Object
  extended by org.jboss.seam.jmx.DefaultExceptionHandler
All Implemented Interfaces:
ProxyExceptionHandler

public class DefaultExceptionHandler
extends java.lang.Object
implements ProxyExceptionHandler

Default exception handler for MBean proxy.

Version:
$Revision: 81019 $
Author:
Juha Lindfors.

Constructor Summary
DefaultExceptionHandler()
           
 
Method Summary
 java.lang.Object handleAttributeNotFound(ProxyContext ctx, javax.management.AttributeNotFoundException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleInstanceNotFound(ProxyContext ctx, javax.management.InstanceNotFoundException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleInvalidAttributeValue(ProxyContext ctx, javax.management.InvalidAttributeValueException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleMBeanException(ProxyContext ctx, javax.management.MBeanException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleReflectionException(ProxyContext ctx, javax.management.ReflectionException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeError(ProxyContext ctx, javax.management.RuntimeErrorException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeMBeanException(ProxyContext ctx, javax.management.RuntimeMBeanException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeOperationsException(ProxyContext ctx, javax.management.RuntimeOperationsException e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionHandler

public DefaultExceptionHandler()
Method Detail

handleInstanceNotFound

public java.lang.Object handleInstanceNotFound(ProxyContext ctx,
                                               javax.management.InstanceNotFoundException e,
                                               java.lang.reflect.Method m,
                                               java.lang.Object[] args)
                                        throws java.lang.Exception
Specified by:
handleInstanceNotFound in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleAttributeNotFound

public java.lang.Object handleAttributeNotFound(ProxyContext ctx,
                                                javax.management.AttributeNotFoundException e,
                                                java.lang.reflect.Method m,
                                                java.lang.Object[] args)
                                         throws java.lang.Exception
Specified by:
handleAttributeNotFound in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleInvalidAttributeValue

public java.lang.Object handleInvalidAttributeValue(ProxyContext ctx,
                                                    javax.management.InvalidAttributeValueException e,
                                                    java.lang.reflect.Method m,
                                                    java.lang.Object[] args)
                                             throws java.lang.Exception
Specified by:
handleInvalidAttributeValue in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleMBeanException

public java.lang.Object handleMBeanException(ProxyContext ctx,
                                             javax.management.MBeanException e,
                                             java.lang.reflect.Method m,
                                             java.lang.Object[] args)
                                      throws java.lang.Exception
Specified by:
handleMBeanException in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleReflectionException

public java.lang.Object handleReflectionException(ProxyContext ctx,
                                                  javax.management.ReflectionException e,
                                                  java.lang.reflect.Method m,
                                                  java.lang.Object[] args)
                                           throws java.lang.Exception
Specified by:
handleReflectionException in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleRuntimeOperationsException

public java.lang.Object handleRuntimeOperationsException(ProxyContext ctx,
                                                         javax.management.RuntimeOperationsException e,
                                                         java.lang.reflect.Method m,
                                                         java.lang.Object[] args)
                                                  throws java.lang.Exception
Specified by:
handleRuntimeOperationsException in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleRuntimeMBeanException

public java.lang.Object handleRuntimeMBeanException(ProxyContext ctx,
                                                    javax.management.RuntimeMBeanException e,
                                                    java.lang.reflect.Method m,
                                                    java.lang.Object[] args)
                                             throws java.lang.Exception
Specified by:
handleRuntimeMBeanException in interface ProxyExceptionHandler
Throws:
java.lang.Exception

handleRuntimeError

public java.lang.Object handleRuntimeError(ProxyContext ctx,
                                           javax.management.RuntimeErrorException e,
                                           java.lang.reflect.Method m,
                                           java.lang.Object[] args)
                                    throws java.lang.Exception
Specified by:
handleRuntimeError in interface ProxyExceptionHandler
Throws:
java.lang.Exception


Copyright © 2011 Seam Framework. All Rights Reserved.