Message: 5
Date: Thu, 22 Jul 2010 05:27:53 -0400
From:
jboss-cvs-commits@lists.jboss.orgSubject: [jboss-cvs] JBossAS SVN: r107017 -
trunk/resteasy-int/jar/src/main/java/org/jboss/resteasy/integration/deployers.
To:
jboss-cvs-commits@lists.jboss.orgMessage-ID:
<
201007220927.o6M9RrEL015390@svn01.web.mwc.hst.phx2.redhat.com>
Content-Type: text/plain; charset=UTF-8
Author:
richard.opalka@jboss.comDate: 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);