T - Type of the exception this handler handles.@Typed public class HandlerMethodImpl<T extends Throwable> extends Object implements org.apache.deltaspike.core.api.exception.control.HandlerMethod<T>
HandlerMethod.| Constructor and Description |
|---|
HandlerMethodImpl(javax.enterprise.inject.spi.Bean<?> handlerDeclaringBean,
javax.enterprise.inject.spi.AnnotatedMethod<?> method,
javax.enterprise.inject.spi.BeanManager bm)
Sole Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static javax.enterprise.inject.spi.AnnotatedParameter<?> |
findHandlerParameter(javax.enterprise.inject.spi.AnnotatedMethod<?> method) |
javax.enterprise.inject.spi.Bean<?> |
getDeclaringBean() |
Type |
getExceptionType() |
javax.enterprise.inject.spi.AnnotatedParameter<?> |
getHandlerParameter() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints(javax.enterprise.inject.spi.BeanManager bm)
Obtain all the injection points for the handler
|
Method |
getJavaMethod() |
int |
getOrdinal() |
Set<Annotation> |
getQualifiers() |
int |
hashCode() |
boolean |
isBeforeHandler() |
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(org.apache.deltaspike.core.api.exception.control.event.ExceptionEvent<T> event,
javax.enterprise.inject.spi.BeanManager beanManager) |
String |
toString() |
public HandlerMethodImpl(javax.enterprise.inject.spi.Bean<?> handlerDeclaringBean,
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 or BeforeHandlespublic 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 javax.enterprise.inject.spi.Bean<?> getDeclaringBean()
public Set<Annotation> getQualifiers()
public Type getExceptionType()
public void notify(org.apache.deltaspike.core.api.exception.control.event.ExceptionEvent<T> event, javax.enterprise.inject.spi.BeanManager beanManager) throws Exception
public boolean isBeforeHandler()
public int getOrdinal()
public javax.enterprise.inject.spi.AnnotatedParameter<?> getHandlerParameter()
public Method getJavaMethod()
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints(javax.enterprise.inject.spi.BeanManager bm)
bm - a BeanManager to use to obtain the beanspublic boolean equals(Object o)
public int hashCode()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.