Package org.jboss.deployers.client.plugins.deployment

Examples of org.jboss.deployers.client.plugins.deployment.AbstractDeployment


   public Deployment createDeployment(ProfileKey key, ProfileDeployment profileDeployment) throws Exception
   {
      Deployment d = null;
      if(profileDeployment.getRoot() == null)
      {
         d = new AbstractDeployment(profileDeployment.getName());
      }
      else
      {
         VirtualFile vf = profileDeployment.getRoot();
         // The ones created using the {@code AutoUnmounter}
View Full Code Here


               deployersImpl.addDeployer(new ServiceDeploymentDeployer());
               deployersImpl.addDeployer(new CLDeployer());
               deployersImpl.addDeployer(new SMDParsingDeployer());
               mainDeployer.setDeployers(deployersImpl);

               Deployment deployment = new AbstractDeployment("SMD");
               mainDeployer.addDeployment(deployment);
               mainDeployer.process();

               mainDeployer.checkComplete(deployment);
               fail("Should not be here");
View Full Code Here

      if (scriptName == null)
         throw new IllegalArgumentException("Null script name.");

      BeanShellScript script = createBeanShellScript(bshScript, scriptName);
      Deployment deployment = new AbstractDeployment(scriptName);
      MutableAttachments mutableAttachments = ((MutableAttachments)deployment.getPredeterminedManagedObjects());
      mutableAttachments.addAttachment(BeanShellScript.class, script);

      deployer.addDeployment(deployment);
      deployer.process();

      return deployment.getName();
   }
View Full Code Here

      try
      {
         webMetaDataModifier.modifyMetaData(dep);

         AbstractDeployment deployment = createSimpleDeployment(dep.getSimpleName());
         MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
         mutableAttachments.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
         mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory());
         mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd);
         mainDeployer.deploy(deployment);
      }
View Full Code Here

   private void undeploy(Deployment dep)
   {
      try
      {
         AbstractDeployment deployment = createSimpleDeployment(dep.getSimpleName());
         mainDeployer.undeploy(deployment);
      }
      catch (Exception ex)
      {
         WSFDeploymentException.rethrow(ex);
View Full Code Here

      }
   }

   private AbstractDeployment createSimpleDeployment(String name)
   {
      AbstractDeployment unit = new AbstractDeployment(name);
      // There is one top level deployment
      factory.addContext(unit, "");
      return unit;
   }
View Full Code Here

   {
      if(deployment == null)
         throw new IllegalArgumentException("Null deployment");
     
      if(deployment.getRoot() == null)
         return new AbstractDeployment(deployment.getName());
      else
         return factory.createVFSDeployment(deployment.getRoot());
   }
View Full Code Here

      try
      {
         webMetaDataModifier.modifyMetaData(dep);

         String contextRoot = dep.getService().getContextRoot();
         AbstractDeployment deployment = createSimpleDeployment("http://jaxws-endpoint-api" + contextRoot);
         MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
         mutableAttachments.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
         mutableAttachments.addAttachment("org.jboss.web.explicitDocBase", "/", String.class);
         mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory(epLoader));
         mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd);
         mutableAttachments.addAttachment(Module.class, ClassLoading.getModuleForClassLoader(epLoader));
View Full Code Here

   public void destroy(Deployment dep)
   {
      try
      {
         String contextRoot = dep.getService().getContextRoot();
         AbstractDeployment deployment = deployments.remove(contextRoot);
         if (deployment != null)
            mainDeployer.undeploy(deployment);
      }
      catch (Exception ex)
      {
View Full Code Here

      }
   }
  
   private AbstractDeployment createSimpleDeployment(String name)
   {
      AbstractDeployment unit = new AbstractDeployment(name);
      // There is one top level deployment
      factory.addContext(unit, "");
      return unit;
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.plugins.deployment.AbstractDeployment

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.