}
private static Map<String, UniversalFile> initializeProxies()
{
Map<String, UniversalFile> result= new HashMap<String, UniversalFile>();
UniversalFile basePath= UniversalFileCreator.createDirectory(BIN_PROXIES_ONEJAR_PATH, BIN_PROXIES_PATH);
// If not proxies are available, we disable proxy replacement.
if (basePath == null)
{
Log.debug(TAG, "Proxies not loaded, therefore there will be no proxy replacement");
return result;
}
final String classEnding= ".class";
UniversalFileFilter classFilter= new FileSuffixFilter(classEnding);
for (UniversalFile proxyFile : basePath.listFilesRecursively(classFilter))
{
String proxyFileName= proxyFile.getRelativePath(basePath.getAbsolutePath());
String proxyTypeName= proxyFileName.substring(0, proxyFileName.length() - (classEnding.length())).replace(File.separatorChar, '.');
result.put(proxyTypeName, proxyFile);
}
return result;
}