Package org.jboss.deployers.client.spi

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


    * @return true if modifed, false otherwise
    * @throws IOException for any error
    */
   protected boolean hasStructureBeenModified(VFSDeploymentContext deploymentContext, boolean checkRoot) throws IOException
   {
      Deployment deployment = deploymentContext.getDeployment();
      if (deployment == null || deployment instanceof VFSDeployment == false)
      {
         log.warn("Deployment is not VFS or not top level.");
         return false;
      }
View Full Code Here


   public Collection<Deployment> getTopLevel()
   {
      List<Deployment> result = new ArrayList<Deployment>();
      for (DeploymentContext context : topLevelDeployments.values())
      {
         Deployment deployment = context.getDeployment();
         if (deployment != null)
            result.add(deployment);
         else
            throw new IllegalStateException("Context has no deployment? " + context.getName());
      }
View Full Code Here

         DeploymentContext[] contexts = new DeploymentContext[deployments.length];
         for(int i = 0; i < deployments.length; i++)
         {
            try
            {
               Deployment deployment = deployments[i];
               addDeployment(deployment, false);
               DeploymentContext context = getTopLevelDeploymentContext(deployment.getName());
               if (contexts == null)
                  throw new DeploymentException("Deployment context not found: " + deployment.getName());

               deployers.process(Collections.singletonList(context), null);
               contexts[i] = context;
            }
            catch(Throwable t)
View Full Code Here

   public Collection<Deployment> getTopLevel()
   {
      List<Deployment> result = new ArrayList<Deployment>();
      for (DeploymentContext context : topLevelDeployments.values())
      {
         Deployment deployment = context.getDeployment();
         if (deployment != null)
            result.add(deployment);
         else
            throw new IllegalStateException("Context has no deployment? " + context.getName());
      }
View Full Code Here

         DeploymentContext[] contexts = new DeploymentContext[deployments.length];
         for(int i = 0; i < deployments.length; i++)
         {
            try
            {
               Deployment deployment = deployments[i];
               addDeployment(deployment, false);
               DeploymentContext context = getTopLevelDeploymentContext(deployment.getName());
               if (contexts == null)
                  throw new DeploymentException("Deployment context not found: " + deployment.getName());

               deployers.process(Collections.singletonList(context), null);
               contexts[i] = context;
            }
            catch(Throwable t)
View Full Code Here

         /*
          * Get the Deployers SPI Deployment
          */

         // Declare
         final Deployment deployment = vdfDeployable.getDeployment();

         // Add to the MainDeployer
         log.debug("Adding to " + mainDeployer + ": " + deployment);
         try
         {
View Full Code Here

      final MainDeployer mainDeployer = this.getMainDeployer();

      // Get the deployments for each deployable
      for (final Deployable deployable : deployables)
      {
         final Deployment deployment = this.getDeployablesToDeploymentsMap().get(deployable);
         if (deployment == null)
         {
            log.warn("Specified deployable " + deployable + " cannot be undeployed because it is not deployed.");
         }
         else
View Full Code Here

         }
         catch (final URISyntaxException e)
         {
            throw new RuntimeException("Could not create new VFS root from " + target, e);
         }
         final Deployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(vf);

         // Add to the MainDeployer
         log.debug("Adding to " + mainDeployer + ": " + deployment);
         try
         {
View Full Code Here

      final Collection<Deployable> deployablesToRemove = new ArrayList<Deployable>();

      // Get the deployments for each deployable
      for (final Deployable deployable : deployables)
      {
         final Deployment deployment = this.deployed.get(deployable);
         if (deployment == null)
         {
            log.warn("Specified deployable " + deployable + " cannot be undeployed because it is not deployed.");
         }
         else
View Full Code Here

   public Collection<Deployment> getTopLevel()
   {
      List<Deployment> result = new ArrayList<Deployment>();
      for (DeploymentContext context : topLevelDeployments.values())
      {
         Deployment deployment = context.getDeployment();
         if (deployment != null)
            result.add(deployment);
         else
            throw new IllegalStateException("Context has no deployment? " + context.getName());
      }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.spi.Deployment

Copyright © 2018 www.massapicom. 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.