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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 10 01:53:17 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-10 01:53:15 -0400 (Thu, 10 Aug 2006)
New Revision: 55484

Modified:
   branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java
Log:
Use thread safe deployer collections

Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java	2006-08-10 05:17:04 UTC (rev 55483)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/MainDeployerImpl.java	2006-08-10 05:53:15 UTC (rev 55484)
@@ -31,6 +31,10 @@
 import java.util.List;
 import java.util.ListIterator;
 import java.util.Map;
+import java.util.Queue;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentLinkedQueue;
+import java.util.concurrent.CopyOnWriteArrayList;
 
 import org.jboss.deployers.spi.AspectDeployer;
 import org.jboss.deployers.spi.Deployment;
@@ -60,10 +64,10 @@
    /** The VFSFactory used to obtain deployment VFS */
    private VFSFactory factory;
    /** The ordered List<AspectDeployer> */
-   private final List<AspectDeployer> deployers = CollectionsFactory.createLazyList();
+   private final List<AspectDeployer> deployers = new CopyOnWriteArrayList<AspectDeployer>();
    
    /** A Map of VDFComponent -> DeploymentContext, listing all "deployed components */
-   private final Map deploymentMap = Collections.synchronizedMap(new LinkedHashMap());
+   private final Map<Deployment, DeploymentContext> deploymentMap = new ConcurrentHashMap<Deployment, DeploymentContext>();
 
    /** The plugin that determines the directed graph of DeploymentContexts */
    private DeploymentGraphBuilder graphBuilder;




More information about the jboss-cvs-commits mailing list