Package org.jboss.deployers.vfs.plugins.structure

Examples of org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit


        return getDeploymentUnit(deploymentContext);
    }

    public static VFSDeploymentUnit getDeploymentUnit(final VFSDeploymentContext deploymentContext)
    {
        return new AbstractVFSDeploymentUnit(deploymentContext);
    }
View Full Code Here


      VirtualFile file = VFS.getRoot(url);
      assertNotNull(file);

      VFSDeploymentContext context = new AbstractVFSDeploymentContext(file, "");
      context.setMetaDataLocations(Collections.singletonList(file));
      AbstractVFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(context);

      deployer.deploy(unit);
      try
      {
         T metaData = unit.getAttachment(getOutput());
         assertMetaData(metaData);
      }
      finally
      {
         deployer.undeploy(unit);
View Full Code Here

   public void testDeployer() throws Exception
   {
      VirtualFile file = getVirtualFile("/structure/explicit", "complex.deployer");
      VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
      deployment.setMetaDataPath(Collections.singletonList("META-INF"));
      VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
      Deployer deployer = new StructureOMFDeployer();

      deployer.deploy(unit);
      try
      {
         StructureMetaData metaData = unit.getAttachment(StructureMetaData.class);
         assertNotNull(metaData);
      }
      finally
      {
         deployer.undeploy(unit);
View Full Code Here

   public void testComparator() throws Exception
   {
      VirtualFile file = getVirtualFile("/structure/explicit", "comparator.jar");
      VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
      deployment.setMetaDataPath(Collections.singletonList("META-INF"));
      VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
      Deployer deployer = new StructureOMFDeployer();

      deployer.deploy(unit);
      try
      {
         StructureMetaData metaData = unit.getAttachment(StructureMetaData.class);
         assertNotNull(metaData);
         assertComparator(metaData, "", "org.jboss.test.deployment.test.SomeDeploymentComparatorTop");
         assertComparator(metaData, "sub.jar", "org.jboss.test.deployment.test.SomeDeploymentComparatorSub");
         assertComparator(metaData, "x.war", "org.jboss.test.deployment.test.SomeDeploymentComparatorX");
      }
View Full Code Here

      try
      {
         VirtualFile file = getVirtualFile("/scanning", "smoke");
         VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
         deployment.setMetaDataPath(Collections.singletonList("META-INF"));
         VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
         deployer.deploy(unit);
         try
         {
            ScanningMetaData metaData = unit.getAttachment(ScanningMetaData.class);
            assertNotNull(metaData);
            List<PathMetaData> paths = metaData.getPaths();
            assertNotNull(paths);
            assertEquals(2, paths.size());
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit

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.