Examples of MutableAttachments


Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      TestDeploymentDeployer1 componentDeployer1 = new TestDeploymentDeployer1();
      TestRealDeployer1 realDeployer1 = new TestRealDeployer1();
      DeployerClient main = createMainDeployer(componentDeployer1, realDeployer1);
     
      Deployment deployment = createSimpleDeployment("deploy");
      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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      TestDeploymentDeployer1 componentDeployer1 = new TestDeploymentDeployer1();
      TestRealDeployer1 realDeployer1 = new TestRealDeployer1();
      DeployerClient main = createMainDeployer(componentDeployer1, realDeployer1);
     
      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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      return createMainDeployer(deployer);
   }

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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      return main;
   }

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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      mutableAttachments.addAttachment(TestAttachment.class, new TestAttachment("x" + deployment.getName(), dependency));
   }

   protected void addComponentAttachment(Deployment deployment, Object dependency)
   {
      MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
      TestAttachment testAttachment = new TestAttachment("x" + deployment.getName(), dependency);
      TestAttachments testAttachments = new TestAttachments();
      testAttachments.addAttachment(testAttachment);
      mutableAttachments.addAttachment(TestAttachments.class, testAttachments);
   }
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      requirements.addRequirement(requirement);
   }

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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      return classLoadingMetaData;
   }

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

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      DeployerClient mainDeployer = createMainDeployer(deployer);

      // some name to the deployment and create a deployment out of it
      String deploymentName = "test-deployment";
      Deployment deployment = createSimpleDeployment(deploymentName);
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
     
      // Jaikiran's deleted comment ;-)
      attachments.addAttachment(String.class.getName(), "IHaveNoClueWhyTheSetInputAPIWorksTheWayItDoes");
     
      // add the attachment so that this unit will be picked up by the visitor
      attachments.addAttachment(attachmentName, "Test123");

      log.debug("Deploying " + deployment);
      // deploy the deployment
      mainDeployer.deploy(deployment);
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      DeployerClient mainDeployer = createMainDeployer(deployer);

      // some name to the deployment and create a deployment out of it
      String deploymentName = "test-deployment";
      Deployment deployment = createSimpleDeployment(deploymentName);
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();

      // Jaikiran's deleted comment ;-)
      attachments.addAttachment(String.class.getName(), "IHaveNoClueWhyTheSetInputAPIWorksTheWayItDoes");
     
      // add the attachment which the visitor is NOT interested in
      attachments.addAttachment("ADifferentAttachment", "Test123");

      log.debug("Deploying " + deployment);
      // deploy the deployment
      mainDeployer.deploy(deployment);
View Full Code Here

Examples of org.jboss.deployers.spi.attachments.MutableAttachments

      assertEquals(DeploymentState.ERROR, main.getDeploymentState(child2Name));
   }

   protected static void addMetaData(PredeterminedManagedObjectAttachments attachments, TestComponentMetaDataContainer md)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
      mutable.addAttachment(TestComponentMetaDataContainer.class, md);
   }
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.