Package org.jboss.deployers.vfs.spi.structure

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext


   
    * @throws Throwable for any problem
    */
   public void testEARAnnotationScanning() throws Throwable
   {
      VFSDeploymentContext ear = assertDeploy("/structure/ear", "scanning.ear");
      assertChildContexts(ear, "appc.jar", "ejbs.jar", "web.jar", "services.jar");
   }
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
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
View Full Code Here

      return url;
   }

   protected void checkContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception
   {
      VFSDeploymentContext vfsContext = (VFSDeploymentContext) context;
      checkMetaDataLocation(vfsContext, contextInfo);
      checkClassPath(vfsContext, contextInfo);
   }
View Full Code Here

   }

   protected Deployment createDeployment(StructureDeployer... deployers) throws Exception
   {
      VFSDeployment deployment = createDeployment();
      VFSDeploymentContext context = determineStructureWithStructureDeployers(deployment, deployers);
      ((MutableAttachments)deployment.getPredeterminedManagedObjects()).addAttachment(DeploymentContext.class, context);
      return deployment;
   }
View Full Code Here

      structuralDeployers.setStructureBuilder(builder);
     
      for (StructureDeployer deployer : deployers)
         structuralDeployers.addDeployer(deployer);

      VFSDeploymentContext context = (VFSDeploymentContext)structuralDeployers.determineStructure(deployment);
      if (serialize)
         return serializeDeserialize(context, VFSDeploymentContext.class);
      else
         return context;
   }
View Full Code Here

   }
  
   protected VFSDeploymentContext deploy(String context, String path) throws Throwable
   {
      VFSDeployment deployment = createDeployment(context, path);
      VFSDeploymentContext result = determineStructure(deployment);
      assertNotNull(result);
      if (result.getProblem() != null)
         throw result.getProblem();
      return result;
   }
View Full Code Here

      return result;
   }
  
   protected VFSDeploymentContext assertDeploy(String context, String path) throws Throwable
   {
      VFSDeploymentContext result = deploy(context, path);
      assertEquals(path, result.getSimpleName());
      return result;
   }
View Full Code Here

      return result;
   }
  
   protected VFSDeploymentContext assertDeployNoChildren(String context, String path) throws Throwable
   {
      VFSDeploymentContext result = assertDeploy(context, path);
      assertNoChildContexts(result);
      return result;
   }
View Full Code Here

      super(name);
   }

   public void testExactMatchTopLevel() throws Exception
   {
      VFSDeploymentContext context = createDeploymentContext("/metadata", "toplevel/exact/jboss-service.xml");
      String expected = getVfsURL("/metadata/toplevel/exact/jboss-service.xml");
      assertMetaDataMatch(context, expected, "jboss-service.xml");
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

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.