Package org.jboss.deployers.spi.attachments

Examples of org.jboss.deployers.spi.attachments.MutableAttachments.addAttachment()


         // copy the modification type information
         parentContextInfo.setModificationType(recognised.getModificationType());
         StructureMetaData structureMetaData = parentContext.getMetaData();
         structureMetaData.addContext(parentContextInfo);
         MutableAttachments attachments = (MutableAttachments) parentContextInfo.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
  
   /**
 
View Full Code Here


      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

{
   public FailedDeployUndeployRunnable(DeployerClient main, Deployment deployment, Deployer deployer)
   {
      super(main, deployment);
      MutableAttachments mutable = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      mutable.addAttachment("fail", deployer);
   }

   public boolean isValid()
   {
      return super.isValid() == false;
View Full Code Here

      MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
      TestAttachments testAttachments = mutableAttachments.getAttachment(TestAttachments.class);
      if (testAttachments == null)
      {
         testAttachments = new TestAttachments();
         mutableAttachments.addAttachment(TestAttachments.class, testAttachments);
      }
      TestAttachment testAttachment = new TestAttachment("x" + deployment.getName(), dependency, install);
      testAttachments.addAttachment(testAttachment);
   }
}
View Full Code Here

   }

   protected static void addMetaData(PredeterminedManagedObjectAttachments attachments, TestComponentMetaDataContainer md)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
      mutable.addAttachment(TestComponentMetaDataContainer.class, md);
   }
  
   protected static void makeFail(PredeterminedManagedObjectAttachments attachments, Deployer deployer)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
View Full Code Here

   }
  
   protected static void makeFail(PredeterminedManagedObjectAttachments attachments, Deployer deployer)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
      mutable.addAttachment("fail", deployer);
   }
  
   protected DeployerClient getMainDeployer()
   {
      return createMainDeployer(deployer1, deployer2);
View Full Code Here

      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();

      TestDeployment1 deployment1 = new TestDeployment1();
      TestMetaData1 component1 = new TestMetaData1("TestBean1");
      deployment1.addBean(component1);
      attachments.addAttachment(TestDeployment1.class, deployment1);

      main.addDeployment(deployment);
      main.process();

      assertEquals(Collections.singletonList(component1), realDeployer1.deployed);
View Full Code Here

     
      Deployment deployment = createSimpleDeployment("deploy");
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();

      TestMetaData1 component1 = new TestMetaData1("TestBean1");
      attachments.addAttachment(TestMetaData1.class, component1);

      main.addDeployment(deployment);
      main.process();

      assertEquals(Collections.singletonList(component1), realDeployer1.deployed);
View Full Code Here

   }

   protected static void makeFail(PredeterminedManagedObjectAttachments attachments, Deployer deployer)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
      mutable.addAttachment("fail", deployer);
   }
}
View Full Code Here

   }

   protected void addAttachment(Deployment deployment, Object dependency)
   {
      MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
      mutableAttachments.addAttachment(TestAttachment.class, new TestAttachment("x" + deployment.getName(), dependency));
   }

   protected void addComponentAttachment(Deployment deployment, Object dependency)
   {
      MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
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.