org.apache.openejb.util
Class UrlCache

java.lang.Object
  extended by org.apache.openejb.util.UrlCache

public class UrlCache
extends Object


Field Summary
static boolean antiJarLocking
           
static File cacheDir
           
 
Constructor Summary
UrlCache()
           
 
Method Summary
 URL[] cacheUrls(String appId, URL[] urls)
           
static void deleteDir(File dir)
          Delete the specified directory, including all of its contents and subdirectories recursively.
 File getUrlCachedName(String appId, URL url)
           
 URL getUrlKeyCached(String appId, File file)
           
 boolean isUrlCached(String appId, URL url)
           
 void releaseUrls(String appId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

antiJarLocking

public static final boolean antiJarLocking

cacheDir

public static final File cacheDir
Constructor Detail

UrlCache

public UrlCache()
Method Detail

cacheUrls

public URL[] cacheUrls(String appId,
                       URL[] urls)

releaseUrls

public void releaseUrls(String appId)

getUrlCachedName

public File getUrlCachedName(String appId,
                             URL url)

isUrlCached

public boolean isUrlCached(String appId,
                           URL url)

getUrlKeyCached

public URL getUrlKeyCached(String appId,
                           File file)

deleteDir

public static void deleteDir(File dir)
Delete the specified directory, including all of its contents and subdirectories recursively.

Parameters:
dir - File object representing the directory to be deleted


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.