Author: pete.muir(a)jboss.org
Date: 2009-08-02 18:44:51 -0400 (Sun, 02 Aug 2009)
New Revision: 3392
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
Log:
WBRI-333
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-08-02
22:39:41 UTC (rev 3391)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-08-02
22:44:51 UTC (rev 3392)
@@ -49,6 +49,7 @@
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.AmbiguousResolutionException;
import javax.enterprise.inject.BindingType;
+import javax.enterprise.inject.InjectionException;
import javax.enterprise.inject.UnproxyableResolutionException;
import javax.enterprise.inject.UnsatisfiedResolutionException;
import javax.enterprise.inject.spi.AnnotatedType;
@@ -1247,7 +1248,14 @@
public void validate(InjectionPoint ij)
{
- getServices().get(Validator.class).validateInjectionPoint(ij, this);
+ try
+ {
+ getServices().get(Validator.class).validateInjectionPoint(ij, this);
+ }
+ catch (DeploymentException e)
+ {
+ throw new InjectionException(e.getMessage(), e.getCause());
+ }
}
public Set<Annotation> getInterceptorBindingTypeDefinition(Class<? extends
Annotation> bindingType)
Show replies by date