|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.exceptionhandler.ClassExceptionConfiguration
public class ClassExceptionConfiguration
This class configures an exception handler. It maps exception types to exception handlers.
| Constructor Summary | |
|---|---|
ClassExceptionConfiguration()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
ExceptionHandler |
getExceptionHandler()
|
Class[] |
getExceptionTypes()
|
boolean |
handlesExceptions(Throwable t,
org.aopalliance.intercept.MethodInvocation invocation)
Requests whether this exception configuration is able to handle the given exception that was thrown in the given method invocation. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Sets the exception handler. |
void |
setExceptionTypes(Class[] exceptionTypes)
Sets the exception types which the hander is responsible for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassExceptionConfiguration()
| Method Detail |
|---|
public Class[] getExceptionTypes()
public void setExceptionTypes(Class[] exceptionTypes)
exceptionTypes - The exception types to set.public ExceptionHandler getExceptionHandler()
getExceptionHandler in interface ExceptionConfigurationpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler - The exception handler to set.
public boolean handlesExceptions(Throwable t,
org.aopalliance.intercept.MethodInvocation invocation)
handlesExceptions in interface ExceptionConfigurationt - The exception to handle.invocation - The invocation in which the exception was thrown.
true if this exception configuratin is able
to handle the exception, false otherwise.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||