Package org.jboss.deployers.spi.attachments

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


   protected Deployment createSimple() throws Exception
   {
      Deployment deployment = createDeployment();
      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
      return deployment;
   }
View Full Code Here


   protected Deployment createSimpleWithAttachment() throws Exception
   {
      Deployment deployment = createDeployment();
      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);
      attachments.addAttachment("test", "hello");

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
      return deployment;
View Full Code Here

   {
      Deployment deployment = createDeployment();
      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);
      attachments.addAttachment("test", "hello");

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
      return deployment;
   }
View Full Code Here

   }
  
   protected static void addMetaData(PredeterminedManagedObjectAttachments attachments, TestComponentMetaDataContainer md)
   {
      MutableAttachments mutable = (MutableAttachments) attachments.getPredeterminedManagedObjects();
      mutable.addAttachment(TestComponentMetaDataContainer.class, md);
   }
  
   protected DeployerClient getMainDeployer()
   {
      return createMainDeployer(deployer1, deployer2, deployer3);
View Full Code Here

   {
      main.addDeployment(context);
      if (mo != null)
      {
         MutableAttachments attachments = (MutableAttachments) context.getPredeterminedManagedObjects();
         attachments.addAttachment(clazz, mo);
      }
      main.process();
      assertEquals("Should be Deployed " + context, DeploymentState.DEPLOYED, main.getDeploymentState(context.getName()));
   }
View Full Code Here

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

      Deployment parent = createSimpleDeployment("Parent");

      ContextInfo ci1 = factory.addContext(parent, "C1");
      Attachments attachments1 = ci1.getPredeterminedManagedObjects();
      MutableAttachments ma1 = (MutableAttachments) attachments1;
      ma1.addAttachment("1.1", "1", String.class);
      ma1.addAttachment("1.2", "2", String.class);

      ContextInfo ci2 = factory.addContext(parent, "C2");
      Attachments attachments2 = ci2.getPredeterminedManagedObjects();
      MutableAttachments ma2 = (MutableAttachments) attachments2;
View Full Code Here

      ContextInfo ci1 = factory.addContext(parent, "C1");
      Attachments attachments1 = ci1.getPredeterminedManagedObjects();
      MutableAttachments ma1 = (MutableAttachments) attachments1;
      ma1.addAttachment("1.1", "1", String.class);
      ma1.addAttachment("1.2", "2", String.class);

      ContextInfo ci2 = factory.addContext(parent, "C2");
      Attachments attachments2 = ci2.getPredeterminedManagedObjects();
      MutableAttachments ma2 = (MutableAttachments) attachments2;
      ma2.addAttachment("2.1", "3", String.class);
View Full Code Here

      ma1.addAttachment("1.2", "2", String.class);

      ContextInfo ci2 = factory.addContext(parent, "C2");
      Attachments attachments2 = ci2.getPredeterminedManagedObjects();
      MutableAttachments ma2 = (MutableAttachments) attachments2;
      ma2.addAttachment("2.1", "3", String.class);
      ma2.addAttachment("2.2", "4", String.class);

      main.addDeployment(parent);
      main.process();
View Full Code Here

      ContextInfo ci2 = factory.addContext(parent, "C2");
      Attachments attachments2 = ci2.getPredeterminedManagedObjects();
      MutableAttachments ma2 = (MutableAttachments) attachments2;
      ma2.addAttachment("2.1", "3", String.class);
      ma2.addAttachment("2.2", "4", String.class);

      main.addDeployment(parent);
      main.process();

      assertEquals(PC2C1, deployer1.deployed);
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.