|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.solder.exception.control.extension.CatchExtension
public class CatchExtension
CDI extension to find handlers at startup.
| Constructor Summary | |
|---|---|
CatchExtension()
|
|
| Method Summary | ||
|---|---|---|
|
findHandlers(javax.enterprise.inject.spi.ProcessBean<?> pmb,
javax.enterprise.inject.spi.BeanManager bm)
Listener to ProcessBean event to locate handlers. |
|
Collection<org.jboss.solder.exception.control.HandlerMethod<? extends Throwable>> |
getHandlersForExceptionType(Type exceptionClass,
javax.enterprise.inject.spi.BeanManager bm,
Set<Annotation> handlerQualifiers,
org.jboss.solder.exception.control.TraversalMode traversalMode)
Obtains the applicable handlers for the given type or super type of the given type. |
|
|
registerHandlerMethod(org.jboss.solder.exception.control.HandlerMethod<T> handlerMethod)
|
|
void |
verifyInjectionPoints(javax.enterprise.inject.spi.AfterDeploymentValidation adv,
javax.enterprise.inject.spi.BeanManager bm)
Verifies all injection points for every handler are valid. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatchExtension()
| Method Detail |
|---|
public <T> void findHandlers(@Observes
javax.enterprise.inject.spi.ProcessBean<?> pmb,
javax.enterprise.inject.spi.BeanManager bm)
pmb - Event from CDI SPIbm - Activated Bean Manager
TypeNotPresentException - if any of the actual type arguments refers to a non-existent type declaration when
trying to obtain the actual type arguments from a ParameterizedType
MalformedParameterizedTypeException - if any of the actual type parameters refer to a parameterized type that cannot be
instantiated for any reason when trying to obtain the actual type arguments from a
ParameterizedType
public void verifyInjectionPoints(@Observes
javax.enterprise.inject.spi.AfterDeploymentValidation adv,
javax.enterprise.inject.spi.BeanManager bm)
adv - Lifecycle eventbm - BeanManager instance
public Collection<org.jboss.solder.exception.control.HandlerMethod<? extends Throwable>> getHandlersForExceptionType(Type exceptionClass,
javax.enterprise.inject.spi.BeanManager bm,
Set<Annotation> handlerQualifiers,
org.jboss.solder.exception.control.TraversalMode traversalMode)
ExceptionHandlerComparator to order the handlers.
exceptionClass - Type of exception to narrow handler listbm - active BeanManagerhandlerQualifiers - additional handlerQualifiers to limit handlerstraversalMode - traversal limiter
public <T extends Throwable> void registerHandlerMethod(org.jboss.solder.exception.control.HandlerMethod<T> handlerMethod)
registerHandlerMethod in interface org.jboss.solder.exception.control.HandlerMethodContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||