Package org.jboss.virtual.spi

Examples of org.jboss.virtual.spi.TempInfo


      VFSContext context = resolutionResult.getContext();
      if (context != null)
      {
         String relativePath = VFSUtils.getRelativePath(context, resolutionResult.getURI());

         TempInfo ti = context.getFurthestParentTemp(relativePath);
         if (ti != null)
         {
            String path = ti.getPath();
            String subpath = relativePath.substring(path.length());
            VirtualFileHandler child = findHandler(ti.getHandler(), subpath, true);
            if (child != null)
                  return child.getVirtualFile();
         }

         VirtualFileHandler root = context.getRoot();
View Full Code Here


   }

   @Override
   public TempInfo getTempInfo(String path)
   {
      TempInfo tempInfo = super.getTempInfo(path);
      if (tempInfo != null)
         return tempInfo;

      return oldContext.getTempInfo(relativePath + path);
   }
View Full Code Here

                  VFSContext context = getPeerContext();
                  if (context != null)
                  {
                     path = getPath(context, entryName);
                     TempInfo ti = context.getTempInfo(path);
                     if (ti != null && ti.isValid())
                     {
                        dest = ti.getTempFile();
                     }
                  }

                  boolean createNewTempInfo = (dest == null || dest.exists() == false);
View Full Code Here

      {
         Entry<TempInfoKey, TempInfo> entry = iter.next();
         if (entry.getKey().originalPath.equals(path) == false)
            return null;

         TempInfo value = entry.getValue();
         if (value.isValid())
            return value;

         // Not valid, eager clean
         iter.remove();
      }
View Full Code Here

   {
      // Start at the last possible matching entry, and scan upwards until the first matching
      // entry is found. Alternatively, path could be broken up by the separation delimiter,
      // and each lookup done from there.
      Entry<TempInfoKey, TempInfo> floor = tempInfos.floorEntry(TempInfoKey.last(path));
      TempInfo result = null;
      while (floor != null && path.startsWith(floor.getKey().originalPath))
      {
         TempInfo value = floor.getValue();
         if (value.isValid())
            result = value;

         floor = tempInfos.lowerEntry(floor.getKey());
      }
View Full Code Here

         Entry<TempInfoKey, TempInfo> entry = iter.next();

         if (entry.getKey().originalPath.startsWith(path) == false)
            break;

         TempInfo ti = entry.getValue();
         if (trace)
         {
            if (info == null)
               info = new ArrayList<String>();

            info.add(ti.toString());
         }

         try
         {
            ti.cleanup();
         }
         catch (Throwable ignored)
         {
         }
         iter.remove();
View Full Code Here

      VFSContext context = getCache().findContext(uri);
      if (context != null)
      {
         String relativePath = VFSUtils.getRelativePath(context, uri);

         TempInfo ti = context.getFurthestParentTemp(relativePath);
         if (ti != null)
         {
            String path = ti.getPath();
            String subpath = relativePath.substring(path.length());
            VirtualFileHandler child = findHandler(ti.getHandler(), subpath, true);
            if (child != null)
                  return child.getVirtualFile();
         }

         VirtualFileHandler root = context.getRoot();
View Full Code Here

      VFSContext context = getCache().findContext(uri);
      if (context != null)
      {
         String relativePath = VFSUtils.getRelativePath(context, uri);

         TempInfo ti = context.getFurthestParentTemp(relativePath);
         if (ti != null)
         {
            String path = ti.getPath();
            String subpath = relativePath.substring(path.length());
            VirtualFileHandler child = findHandler(ti.getHandler(), subpath, true);
            if (child != null)
                  return child.getVirtualFile();
         }

         VirtualFileHandler root = context.getRoot();
View Full Code Here

      {
         Entry<TempInfoKey, TempInfo> entry = iter.next();
         if (entry.getKey().originalPath.equals(path) == false)
            return null;

         TempInfo value = entry.getValue();
         if (value.isValid())
            return value;

         // Not valid, eager clean
         iter.remove();
      }
View Full Code Here

   {
      // Start at the last possible matching entry, and scan upwards until the first matching
      // entry is found. Alternatively, path could be broken up by the separation delimiter,
      // and each lookup done from there.
      Entry<TempInfoKey, TempInfo> floor = tempInfos.floorEntry(TempInfoKey.last(path));
      TempInfo result = null;
      while (floor != null && path.startsWith(floor.getKey().originalPath))
      {
         TempInfo value = floor.getValue();
         if (value.isValid())
            result = value;

         floor = tempInfos.lowerEntry(floor.getKey());
      }
View Full Code Here

TOP

Related Classes of org.jboss.virtual.spi.TempInfo

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.