Package org.jboss.deployers.client.spi

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


   public void testMultipleSubDeploymentClassLoaderSpecifiedDomain() throws Exception
   {
      DeployerClient deployer = getMainDeployer();

      Deployment deployment = createSimpleDeployment("top");
      addClassLoadingMetaData(deployment, "top", null);
     
      ContextInfo sub1 = addChild(deployment, "sub1");
      ClassLoadingMetaData topSub1 = addClassLoadingMetaData(sub1, "top/sub1", null, A.class);
      topSub1.setDomain("TestDomain");
View Full Code Here


      deployer.setStage(DeploymentStages.POST_PARSE);
      DeployerClient main = createMainDeployer(deployer);
     
      String name = "simple";
     
      Deployment deployment = createSimpleDeployment(name);
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);
      main.deploy(deployment);

      DeploymentUnit unit = getDeploymentUnit(main, name);
     
View Full Code Here

      final Set<Deployment> deploymentsToRemove = new HashSet<Deployment>();
      final Set<URL> urlsToUnregister = new HashSet<URL>();
      for (final URL url : urls)
      {
         // Lookup
         final Deployment deployment = this.deployments.get(url);
         if (deployment == null)
         {
            if (log.isDebugEnabled())
            {
               log.debug("Ignoring undeployment request of " + url.toExternalForm()
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 (context == 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

    * @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

    * @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

      TestSimpleDeployer empty = new TestSimpleDeployer();

      DeployerClient main = createMainDeployer(missing, all, empty);

      String name = "simple";
      Deployment deployment = createSimpleDeployment(name);

      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);

      Set<String> singleton;
      main.deploy(deployment);
      try
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.