|
||||||||||
| 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(javax.enterprise.inject.spi.AnnotatedMethod method,
javax.enterprise.inject.spi.BeanManager bm)
Sole Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
javax.enterprise.inject.spi.Bean<?> |
getBean(javax.enterprise.inject.spi.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. |
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. |
TraversalPath |
getTraversalPath()
Obtains the direction of the traversal path the handler will be listening. |
int |
hashCode()
|
void |
notify(CaughtException<T> event,
javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.AnnotatedMethod method,
javax.enterprise.inject.spi.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 Class<?> getBeanClass()
getBeanClass in interface HandlerMethod<T extends Throwable>public javax.enterprise.inject.spi.Bean<?> getBean(javax.enterprise.inject.spi.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,
javax.enterprise.inject.spi.BeanManager bm)
notify in interface HandlerMethod<T extends Throwable>event - event to pass to the handler.bm - Active BeanManagerpublic TraversalPath getTraversalPath()
getTraversalPath 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 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 | |||||||||