[jboss-cvs] JBossAS SVN: r107017 - trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jul 22 05:27:53 EDT 2010
Author: richard.opalka at jboss.com
Date: 2010-07-22 05:27:52 -0400 (Thu, 22 Jul 2010)
New Revision: 107017
Modified:
trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers/ResteasyIntegrationDeployer.java
Log:
[JBAS-8234] fixing CCE
Modified: trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers/ResteasyIntegrationDeployer.java
===================================================================
--- trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers/ResteasyIntegrationDeployer.java 2010-07-22 09:02:39 UTC (rev 107016)
+++ trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers/ResteasyIntegrationDeployer.java 2010-07-22 09:27:52 UTC (rev 107017)
@@ -146,7 +146,8 @@
{
Thread.currentThread().getContextClassLoader().loadClass(CDI_INJECTOR_FACTORY_CLASS);
// don't set this param if CDI is not in classpath
- if (((VFSDeploymentUnit) du).getMetaDataFile("beans.xml") != null)
+ final boolean isVFSDU = du instanceof VFSDeploymentUnit;
+ if (isVFSDU && ((VFSDeploymentUnit) du).getMetaDataFile("beans.xml") != null)
{
log.debug("***** Found CDI, adding injector factory class");
setContextParameter(webdata, "resteasy.injector.factory", CDI_INJECTOR_FACTORY_CLASS);
More information about the jboss-cvs-commits
mailing list