public class ExceptionControlExtension extends Object implements javax.enterprise.inject.spi.Extension, org.apache.deltaspike.core.spi.activation.Deactivatable
| Constructor and Description |
|---|
ExceptionControlExtension() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
findHandlers(javax.enterprise.inject.spi.ProcessBean<?> processBean,
javax.enterprise.inject.spi.BeanManager beanManager)
Listener to ProcessBean event to locate handlers.
|
Map<Type,Collection<org.apache.deltaspike.core.api.exception.control.HandlerMethod<? extends Throwable>>> |
getAllExceptionHandlers() |
protected void |
init(javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery) |
void |
verifyInjectionPoints(javax.enterprise.inject.spi.AfterDeploymentValidation afterDeploymentValidation,
javax.enterprise.inject.spi.BeanManager bm)
Verifies all injection points for every handler are valid.
|
protected void init(@Observes
javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery)
public <T> void findHandlers(@Observes
javax.enterprise.inject.spi.ProcessBean<?> processBean,
javax.enterprise.inject.spi.BeanManager beanManager)
processBean - current AnnotatedTypebeanManager - Activated Bean ManagerTypeNotPresentException - if any of the actual type arguments refers to a non-existent type declaration
when trying to obtain the actual type arguments from a
ParameterizedTypeMalformedParameterizedTypeException - 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 ParameterizedTypepublic void verifyInjectionPoints(@Observes
javax.enterprise.inject.spi.AfterDeploymentValidation afterDeploymentValidation,
javax.enterprise.inject.spi.BeanManager bm)
afterDeploymentValidation - Lifecycle eventbm - BeanManager instancepublic Map<Type,Collection<org.apache.deltaspike.core.api.exception.control.HandlerMethod<? extends Throwable>>> getAllExceptionHandlers()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.