public class ResourceManager extends Object
Constructor and Description |
---|
ResourceManager(JpcPreferences preferences) |
Modifier and Type | Method and Description |
---|---|
static void |
copyResources(URL url,
com.google.common.base.Predicate<String> predicate,
File destination) |
void |
createTmpLogicFiles(URL url) |
static ResourceManager |
getDefaultResourceManager() |
String |
getResourcePath(String resource,
URL url) |
File |
getTmpDir(URL url)
Answers a convenient id of a tmp subdirectory for a given url
|
boolean |
hasBeenProcessed(URL url) |
boolean |
process(URL url)
Find all the logic files in the given url and copy them in a tmp folder
|
void |
reset() |
static void |
setDefaultResourceManager(ResourceManager defaultResourceManager) |
public ResourceManager(JpcPreferences preferences)
public static ResourceManager getDefaultResourceManager()
public static void setDefaultResourceManager(ResourceManager defaultResourceManager)
public void reset()
public boolean hasBeenProcessed(URL url)
url
- public boolean process(URL url)
url
- public File getTmpDir(URL url)
url
- public void createTmpLogicFiles(URL url) throws IOException
IOException
public static void copyResources(URL url, com.google.common.base.Predicate<String> predicate, File destination)
Copyright © 2014. All rights reserved.