|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.exception.control.HandlerMethodImpl<T>
T - Type of the exception this handler handles.public class HandlerMethodImpl<T extends Throwable>
Implementation of HandlerMethod.
| Constructor Summary | |
|---|---|
HandlerMethodImpl(AnnotatedMethod<?> method,
BeanManager bm)
Sole Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
static AnnotatedParameter<?> |
findHandlerParameter(AnnotatedMethod<?> method)
|
Bean<?> |
getBean(BeanManager bm)
Obtains the Bean reference that declares the observer method. |
Class<?> |
getBeanClass()
Obtains the bean class of the bean that declares the observer method. |
Type |
getExceptionType()
Obtains the handled event type. |
AnnotatedParameter<?> |
getHandlerParameter()
Obtains the actual parameter defining this as a handler. |
Method |
getJavaMethod()
Obtains the actual method of the handler. |
int |
getPrecedence()
Obtains the precedence of the handler. |
Set<Annotation> |
getQualifiers()
Obtains the set of handled event qualifiers. |
TraversalMode |
getTraversalMode()
Obtains the direction of the traversal path the handler will be listening. |
int |
hashCode()
|
static boolean |
isHandler(AnnotatedMethod<?> method)
Determines if the given method is a handler by looking for the Handles annotation on a parameter. |
void |
notify(CaughtException<T> event,
BeanManager bm)
Calls the handler method, passing the given event object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HandlerMethodImpl(AnnotatedMethod<?> method,
BeanManager bm)
method - found handlerbm - active BeanManager
IllegalArgumentException - if method is null, has no params or first param is not annotated with Handles| Method Detail |
|---|
public static boolean isHandler(AnnotatedMethod<?> method)
Handles annotation on a parameter.
method - method to search
Handles is found, false otherwisepublic static AnnotatedParameter<?> findHandlerParameter(AnnotatedMethod<?> method)
public Class<?> getBeanClass()
getBeanClass in interface HandlerMethod<T extends Throwable>public Bean<?> getBean(BeanManager bm)
getBean in interface HandlerMethod<T extends Throwable>bm - Active BeanManagerpublic Set<Annotation> getQualifiers()
getQualifiers in interface HandlerMethod<T extends Throwable>public Type getExceptionType()
getExceptionType in interface HandlerMethod<T extends Throwable>
public void notify(CaughtException<T> event,
BeanManager bm)
notify in interface HandlerMethod<T extends Throwable>event - event to pass to the handler.bm - Active BeanManagerpublic TraversalMode getTraversalMode()
getTraversalMode in interface HandlerMethod<T extends Throwable>public int getPrecedence()
getPrecedence in interface HandlerMethod<T extends Throwable>public Method getJavaMethod()
getJavaMethod in interface HandlerMethod<T extends Throwable>public AnnotatedParameter<?> getHandlerParameter()
HandlerMethod
getHandlerParameter in interface HandlerMethod<T extends Throwable>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||