Examples of DeployerClientChangeExt


Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public boolean resolve(LifeCycle... lifecycles) throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      Set<DeploymentLifeCycle> deploymentLifeCycles = null;
      if (changer != null)
         deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
      if (deploymentLifeCycles == null)
      {
         return super.resolve(lifecycles);
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
      {
         if (lifeCycle.isResolved() == false)
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
      {
         try
         {
            changer.change(DeploymentStages.CLASSLOADER, true, names.toArray(new String[names.size()]));
         }
         catch (IncompleteDeploymentException e)
         {
            return false;
         }
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public void unresolve(LifeCycle... lifecycles) throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      Set<DeploymentLifeCycle> deploymentLifeCycles = null;
      if (changer != null)
         deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
      if (deploymentLifeCycles == null)
      {
         super.unresolve(lifecycles);
         return;
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
      {
         if (lifeCycle.isResolved())
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.DESCRIBE, false, names.toArray(new String[names.size()]));
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public void bounce() throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      if (changer == null)
         throw new IllegalStateException("Don't know how to bounce " + getModule().getDeploymentUnit().getName());
      changer.bounce(DeploymentStages.DESCRIBE, false, getModule().getDeploymentUnit().getName());
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public void bounce(LifeCycle... lifecycles) throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      Set<DeploymentLifeCycle> deploymentLifeCycles = null;
      if (changer != null)
         deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
      if (deploymentLifeCycles == null)
      {
         super.bounce(lifecycles);
         return;
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
         names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      changer.change(DeploymentStages.DESCRIBE, false, names.toArray(new String[names.size()]));
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public void start(LifeCycle... lifecycles) throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      Set<DeploymentLifeCycle> deploymentLifeCycles = null;
      if (changer != null)
         deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
      if (deploymentLifeCycles == null)
      {
         super.start(lifecycles);
         return;
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
      {
         if (lifeCycle.isStarted() == false)
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.INSTALLED, false, names.toArray(new String[names.size()]));
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClientChangeExt

   }

   @Override
   public void stop(LifeCycle... lifecycles) throws Exception
   {
      DeployerClientChangeExt changer = getChanger();
      Set<DeploymentLifeCycle> deploymentLifeCycles = null;
      if (changer != null)
         deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
      if (deploymentLifeCycles == null)
      {
         super.stop(lifecycles);
         return;
      }
      Set<String> names = new LinkedHashSet<String>(lifecycles.length);
      for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
      {
         if (lifeCycle.isResolved())
            names.add(lifeCycle.getModule().getDeploymentUnit().getName());
      }
      if (names.isEmpty() == false)
         changer.change(DeploymentStages.CLASSLOADER, false, names.toArray(new String[names.size()]));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.