[Jboss-cvs] JBossAS SVN: r55151 - branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 3 20:48:42 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-03 20:48:40 -0400 (Thu, 03 Aug 2006)
New Revision: 55151

Modified:
   branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java
Log:
Use the scoped context data accessors

Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java	2006-08-04 00:47:35 UTC (rev 55150)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java	2006-08-04 00:48:40 UTC (rev 55151)
@@ -105,6 +105,7 @@
    /**
     * Analyze .beans, -beans.xml deployments
     */
+   @Override
    public boolean analyze(DeploymentContext ctx) throws DeploymentException
    {
       boolean isBeanDeployment = false;
@@ -119,7 +120,7 @@
             @SuppressWarnings("unused")
             VirtualFile descriptor = vf.findChild(JAR_DESCRIPTOR);
             log.debug("Found META-INF/jboss-beans.xml: "+descriptor);
-            ctx.getContextData().put(JAR_DESCRIPTOR, Boolean.TRUE);
+            ctx.putContextData(getClass(), JAR_DESCRIPTOR, Boolean.TRUE);
             // add deployment base to the classpath
             ctx.addClasspathEntry("");
          }
@@ -158,7 +159,7 @@
       if( trace )
          log.trace("Processing beans deployment: "+ctx);
       VirtualFile descriptor = ctx.getFile();
-      Boolean jarType = (Boolean) ctx.getContextData().get(JAR_DESCRIPTOR);
+      Boolean jarType = (Boolean) ctx.getContextData(getClass(), JAR_DESCRIPTOR);
       try
       {
          if( jarType == Boolean.TRUE )




More information about the jboss-cvs-commits mailing list