Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFile.toURL()


      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.toURL();
         }
         catch (Exception ignored)
         {
            log.debug("Error determining URL for " + child, ignored);
            return null;
View Full Code Here


      {
         try
         {
            VirtualFile child = root.getChild(name);
            if (child != null)
               urls.add(child.toURL());
         }
         catch (Exception e)
         {
            log.debug("Error getting resources for " + root, e);
         }
View Full Code Here

      URL rootURL = null;
      if (root != null)
      {
         try
         {
            rootURL = root.toURL();
            manifest = manifestCache.get(rootURL);
            if (manifest == null)
            {
               manifest = VFSUtils.getManifest(root);
               if (manifest == null)
View Full Code Here

         return null;
      }
      try
      {
         VirtualFile root = findRoot(path);;
         URL codeSourceURL = root.toURL();
         Certificate[] certs = null; // TODO JBMICROCONT-182 determine certificates
         CodeSource cs = new CodeSource(codeSourceURL, certs);
         PermissionCollection permissions = Policy.getPolicy().getPermissions(cs);
         return new ProtectionDomain(cs, permissions);
      }
View Full Code Here

         if (scope != null) scope.register(deployment);
         // create() creates initial EJB containers and initializes metadata.
         deployment.create();
         if (deployment.getEjbContainers().size() == 0 && deployment.getPersistenceUnitDeployments().size() == 0)
         {
            log.trace("Found no containers in scanned jar, consider adding it to the ignore list: " + jar.getName() + " url: " + jar.toURL() + " unit: " + unit.getSimpleName());
            deployment.destroy();
            return;
         }
         unit.addAttachment(Ejb3Deployment.class, deployment);
         // TODO: temporarily disable the security deployment
View Full Code Here

   {
      try
      {
         VirtualFile vf = unit.getMetaDataFile(resource);
         if (vf == null) return null;
         return vf.toURL();
      }
      catch (Exception e)
      {
         throw new RuntimeException(e);
      }
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.toURL();
         }
         catch (Exception ignored)
         {
            log.trace("Error determining URL for " + child, ignored);
            return null;
View Full Code Here

      for (VirtualFile root : roots)
      {
         try
         {
            VirtualFile child = root.findChild(name);
            urls.add(child.toURL());
         }
         catch (Exception ignored)
         {
            log.trace("Error getting resources for " + root, ignored);
         }
View Full Code Here

      URL rootURL = null;
      if (root != null)
      {
         try
         {
            rootURL = root.toURL();
            manifest = manifestCache.get(rootURL);
            if (manifest == null)
            {
               manifest = VFSUtils.getManifest(root);
               if (manifest == null)
View Full Code Here

         return null;
      }
      try
      {
         VirtualFile root = clazz.getVFS().getRoot();
         URL codeSourceURL = root.toURL();
         Certificate[] certs = null; // TODO JBMICROCONT-182 determine certificates
         CodeSource cs = new CodeSource(codeSourceURL, certs);
         PermissionCollection permissions = Policy.getPolicy().getPermissions(cs);
         return new ProtectionDomain(cs, permissions);
      }
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.