[webbeans-commits] Webbeans SVN: r2224 - ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Fri Mar 27 08:35:49 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-03-27 08:35:49 -0400 (Fri, 27 Mar 2009)
New Revision: 2224
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java
Log:
account for jpa services not being specified
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java 2009-03-27 11:16:11 UTC (rev 2223)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java 2009-03-27 12:35:49 UTC (rev 2224)
@@ -261,7 +261,7 @@
!ejbApiAbstraction.ENTERPRISE_BEAN_CLASS.isAssignableFrom(rawType) &&
!jsfApiAbstraction.UICOMPONENT_CLASS.isAssignableFrom(rawType) &&
hasSimpleWebBeanConstructor(clazz)
- && !manager.getServices().get(JpaServices.class).discoverEntities().contains(clazz.getRawType());
+ && manager.getServices().contains(JpaServices.class) ? !manager.getServices().get(JpaServices.class).discoverEntities().contains(clazz.getRawType()) : true;
}
private static boolean hasSimpleWebBeanConstructor(AnnotatedClass<?> type)
More information about the weld-commits
mailing list