Package org.jboss.deployers.spi.attachments

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


   {
      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


   }

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

   protected DeployerClient getMainDeployer()
   {
      AbstractJDKChecker.getExcluded().add(VFSClassLoaderDependenciesTest.class);
View Full Code Here

   }

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

   protected AnnotationEnvironment getAnnotationEnvironment(Attachments attachments)
   {
      AnnotationEnvironment env = attachments.getAttachment(AnnotationEnvironment.class);
View Full Code Here

      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);
View Full Code Here

     
      // 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

      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);
View Full Code Here

      // 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

   }

   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 mutable = getMutable();
     
      try
      {
         mutable.addAttachment((String) null, "attachment");
         fail("Should not be here!");
      }
      catch (Throwable t)
      {
         checkThrowable(IllegalArgumentException.class, t);
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.