T
- Type of the exception this handler handles.public class HandlerMethodImpl<T extends Throwable> extends Object implements HandlerMethod<T>
HandlerMethod
.Constructor and Description |
---|
HandlerMethodImpl(javax.enterprise.inject.spi.AnnotatedMethod<?> method,
javax.enterprise.inject.spi.BeanManager bm)
Sole Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Basic
Object.equals(Object) but must use all of the get methods from this interface to maintain compatibility. |
static javax.enterprise.inject.spi.AnnotatedParameter<?> |
findHandlerParameter(javax.enterprise.inject.spi.AnnotatedMethod<?> method) |
javax.enterprise.inject.spi.Bean<?> |
getBean(javax.enterprise.inject.spi.BeanManager bm) |
Class<?> |
getBeanClass() |
Type |
getExceptionType()
Obtains the handled event type.
|
javax.enterprise.inject.spi.AnnotatedParameter<?> |
getHandlerParameter() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
Method |
getJavaMethod() |
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(javax.enterprise.inject.spi.AnnotatedMethod<?> method)
Determines if the given method is a handler by looking for the
Handles annotation on a parameter. |
void |
notify(CaughtException<T> event,
javax.enterprise.inject.spi.BeanManager bm)
Calls the handler method, passing the given event object.
|
String |
toString() |
public HandlerMethodImpl(javax.enterprise.inject.spi.AnnotatedMethod<?> method, javax.enterprise.inject.spi.BeanManager bm)
method
- found handlerbm
- active BeanManagerIllegalArgumentException
- if method is null, has no params or first param is not annotated with
Handles
public static boolean isHandler(javax.enterprise.inject.spi.AnnotatedMethod<?> method)
Handles
annotation on a parameter.method
- method to searchHandles
is found, false otherwisepublic static javax.enterprise.inject.spi.AnnotatedParameter<?> findHandlerParameter(javax.enterprise.inject.spi.AnnotatedMethod<?> method)
public Class<?> getBeanClass()
public javax.enterprise.inject.spi.Bean<?> getBean(javax.enterprise.inject.spi.BeanManager bm)
public 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 TraversalMode getTraversalMode()
getTraversalMode
in interface HandlerMethod<T extends Throwable>
public int getPrecedence()
getPrecedence
in interface HandlerMethod<T extends Throwable>
public Method getJavaMethod()
public javax.enterprise.inject.spi.AnnotatedParameter<?> getHandlerParameter()
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
public boolean equals(Object o)
HandlerMethod
Object.equals(Object)
but must use all of the get methods from this interface to maintain compatibility.public int hashCode()
Copyright © 2008-2013 Seam Framework. All Rights Reserved.