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

Type Parameters:
T - Exception for which this handler is responsible

public interface HandlerMethod<T extends Throwable>

Meta data interface about an exception handler. It is the responsibility of the implementation to support InjectionPoints and to validate those InjectionPoints.

Author:
Jason Porter

Method Summary
 boolean equals(Object o)
          Basic Object.equals(Object) but must use all of the get methods from this interface to maintain compatibility.
 Type getExceptionType()
          Obtains the handled event type.
 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()
           
 void notify(CaughtException<T> event, BeanManager bm)
          Calls the handler method, passing the given event object.
 

Method Detail

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,
            BeanManager bm)
Calls the handler method, passing the given event object.

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

getTraversalMode

TraversalMode getTraversalMode()
Obtains the direction of the traversal path the handler will be listening.


getPrecedence

int getPrecedence()
Obtains the precedence of the handler.


equals

boolean equals(Object o)
Basic Object.equals(Object) but must use all of the get methods from this interface to maintain compatibility.

Overrides:
equals in class Object
Parameters:
o - Object being compared to this.
Returns:
true or false based on standard equality.

hashCode

int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011 Seam Framework. All Rights Reserved.