Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.ResourceLoaderAdapter.findChild()


   {
      //Getting the classloader for UnifiedVirtualFile which lives in SPI -> external jar (from the maven repo)
      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
View Full Code Here


   {
      //Getting the classloader for ResourceLoaderAdapter which lives in COMMON -> target/classes in this project
      ClassLoader cl = ResourceLoaderAdapter.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile common = ula.findChild("org/jboss/wsf/common/");
      assertNotNull(common);
      assertTrue(common.toURL().toExternalForm().contains("target" + File.separator + "classes")); //check we got a URL to dir
      assertEquals("common/", common.getName());
      List<UnifiedVirtualFile> children = common.getChildren();
      assertNotNull(children);
View Full Code Here

   {
      //Getting the classloader for UnifiedVirtualFile which lives in SPI -> external jar (from the maven repo)
      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
View Full Code Here

   {
      //Getting the classloader for ResourceLoaderAdapter which lives in COMMON -> target/classes in this project
      ClassLoader cl = ResourceLoaderAdapter.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile common = ula.findChild("org/jboss/wsf/common/");
      assertNotNull(common);
      assertTrue(common.toURL().toExternalForm().contains("target/classes")); //check we got a URL to dir
      assertEquals("common/", common.getName());
      List<UnifiedVirtualFile> children = common.getChildren();
      assertNotNull(children);
View Full Code Here

   private UnifiedVirtualFile getWebservicesFile(DeploymentInfo unit, String wsFile)
   {
      try
      {
         UnifiedVirtualFile vfsRoot = new ResourceLoaderAdapter(unit.localCl);
         return (wsFile != null ? vfsRoot.findChild(wsFile) : null);
      }
      catch (IOException e)
      {
         return null;
      }
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.