User: user57  
  Date: 02/04/04 12:57:59

  Modified:    src/main/org/jboss/deployment/cache DeploymentCache.java
  Log:
   o Don't need to track deployments, use target Deployer for that
  
  Revision  Changes    Path
  1.3       +4 -19     
jboss-system/src/main/org/jboss/deployment/cache/DeploymentCache.java
  
  Index: DeploymentCache.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/cache/DeploymentCache.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeploymentCache.java      4 Apr 2002 04:33:58 -0000       1.2
  +++ DeploymentCache.java      4 Apr 2002 20:57:58 -0000       1.3
  @@ -9,9 +9,6 @@
   
   package org.jboss.deployment.cache;
   
  -import java.util.Set;
  -import java.util.HashSet;
  -
   import java.net.URL;
   
   import javax.management.ObjectName;
  @@ -36,7 +33,7 @@
    *
    * @todo clean up stale cache members
    *
  - * @version <tt>$Revision: 1.2 $</tt>
  + * @version <tt>$Revision: 1.3 $</tt>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    */
   public class DeploymentCache
  @@ -49,10 +46,6 @@
      /** A proxy to the deployment store we are using. */
      protected DeploymentStore store;
   
  -   /** A set of original deployment URLs which are deployed. */
  -   protected Set deployedSet = new HashSet();
  -
  -
      /////////////////////////////////////////////////////////////////////////
      //                               Pluggables                            //
      /////////////////////////////////////////////////////////////////////////
  @@ -162,11 +155,6 @@
   
            // invoke the chained deployer with the stored URL
            deployer.deploy(storedURL);
  -
  -         // only add the deployment url if it isn't there yet
  -         if (!deployedSet.contains(url)) {
  -            deployedSet.add(url);
  -         }
         }
         catch (Exception e) {
            throw new DeploymentException(e);
  @@ -182,9 +170,6 @@
            if (storedURL != null) {
               // invoke undeploy on target deployer using local cache url
               deployer.undeploy(storedURL);
  -
  -            // remove this from out list of deployed
  -            deployedSet.remove(url);
            }
            else {
               if (debug) {
  @@ -202,9 +187,9 @@
         try {
            URL storedURL = store.get(url);
   
  -         // if the stored url is null or it is not in the deployed set 
  -         // then it is not deployed, don't bother asking the target deployer
  -         return storedURL != null && deployedSet.contains(url);
  +         // if the stored url is not null then ask the target deployer
  +         // else it is not deployed
  +         return storedURL != null && deployer.isDeployed(url);
         }
         catch (Exception e) {
            return false;
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to