public class PrologResourceLoader extends Object
Constructor and Description |
---|
PrologResourceLoader(PrologEngine prologEngine,
ClassLoader... classLoaders) |
PrologResourceLoader(PrologEngine prologEngine,
ResourceManager resourceManager,
ClassLoader... classLoaders) |
Modifier and Type | Method and Description |
---|---|
boolean |
ensureLoaded(List<String> resources) |
boolean |
ensureLoaded(String... resources) |
boolean |
logtalkLoad(List<String> resources) |
boolean |
logtalkLoad(String... resources) |
Term |
resolveResource(String resource)
Given a resource id (possibly inside a jar) answers a Term that represents the resource in the file system.
|
Term |
resolveResource(String resourceName,
URL url) |
public PrologResourceLoader(PrologEngine prologEngine, ClassLoader... classLoaders)
public PrologResourceLoader(PrologEngine prologEngine, ResourceManager resourceManager, ClassLoader... classLoaders)
prologEngine
- the logic engine where the resources will be loadedjpcPreferences
- the preferences defining (among other things) where logic tmp files will be copied before being loaded in the logic enginepublic boolean ensureLoaded(String... resources)
public boolean logtalkLoad(String... resources)
public Term resolveResource(String resource)
resource
- Copyright © 2014. All rights reserved.