engine
Class ModuleLoader

java.lang.Object
engine.ModuleLoader
- class ModuleLoader
- extends java.lang.Object
This class is used for dynamically loading modules
from the known paths.
It also contains the writeModule methos, which writes
a module in the current working directory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objPaths
public static java.util.Vector objPaths
- The paths that will be searched for modules.
ModuleLoader
ModuleLoader()
setLibDirs
public static void setLibDirs()
- Parses the "vide.libdirs" System property and
puts the paths into objPaths.
getModuleByName
public static ModuleFactory getModuleByName(java.lang.String name)
- Resolves names to module descriptions
getModuleFile
public static java.lang.String getModuleFile(java.lang.String name)
- Finds a file that holds the given module,
using the paths from objPaths (assumed to end with '/')
readModule
public static ModuleFactory readModule(java.lang.String name)
- Fetches a ModuleDescription from a file.
The paths given in objPaths are searched for a match.
writeModule
public static void writeModule(ModuleFactory desc)
- Dumps a moduleDescription to a file together with some magic &
ver info. The file is created into the current directory !