Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

engine
Class ModuleLoader  view ModuleLoader download ModuleLoader.java

java.lang.Object
  extended byengine.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.


Field Summary
static java.util.Vector objPaths
          The paths that will be searched for modules.
 
Constructor Summary
(package private) ModuleLoader()
           
 
Method Summary
static ModuleFactory getModuleByName(java.lang.String name)
          Resolves names to module descriptions
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 '/')
static ModuleFactory readModule(java.lang.String name)
          Fetches a ModuleDescription from a file.
static void setLibDirs()
          Parses the "vide.libdirs" System property and puts the paths into objPaths.
static void writeModule(ModuleFactory desc)
          Dumps a moduleDescription to a file together with some magic & ver info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objPaths

public static java.util.Vector objPaths
The paths that will be searched for modules.

Constructor Detail

ModuleLoader

ModuleLoader()
Method Detail

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 !