org.jboss.seam.exception.control
Interface HandlerMethod<T extends Throwable>

All Known Implementing Classes:
HandlerMethodImpl

public interface HandlerMethod<T extends Throwable>


Method Summary
 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.
 void notify(CaughtException<T> event, javax.enterprise.inject.spi.BeanManager bm)
          Calls the handler method, passing the given event object.
 

Method Detail

getBeanClass

Class<?> getBeanClass()
Obtains the bean class of the bean that declares the observer method.


getBean

javax.enterprise.inject.spi.Bean<?> getBean(javax.enterprise.inject.spi.BeanManager bm)
Obtains the Bean reference that declares the observer method.

Parameters:
bm - Active BeanManager

getQualifiers

Set<Annotation> getQualifiers()
Obtains the set of handled event qualifiers.


getExceptionType

Type getExceptionType()
Obtains the handled event type.


notify

void notify(CaughtException<T> event,
            javax.enterprise.inject.spi.BeanManager bm)
Calls the handler method, passing the given event object.

Parameters:
event - event to pass to the handler.
bm - Active BeanManager

getTraversalPath

TraversalPath getTraversalPath()
Obtains the direction of the traversal path the handler will be listening.


getPrecedence

int getPrecedence()
Obtains the precedence of the handler.


getJavaMethod

Method getJavaMethod()
Obtains the actual method of the handler.



Copyright © 2010 Seam Framework. All Rights Reserved.