zinger.bsheet.module
Class ModuleFactory

java.lang.Object
  extended by zinger.bsheet.module.ModuleFactory

public class ModuleFactory
extends java.lang.Object


Field Summary
static ModuleFactory INSTANCE
           
protected  java.io.FilenameFilter propertiesFileFilter
           
 
Constructor Summary
protected ModuleFactory()
           
 
Method Summary
 java.net.URL[] getCPURLs(java.util.Properties modConfig)
           
 java.io.File[] getModuleDescriptors()
           
 java.io.File getModuleHomeDir()
           
 java.util.List getModules()
           
 Module loadModule(java.lang.ClassLoader loader, java.lang.String className)
           
 Module loadModule(java.io.File modDescriptor)
           
 Module loadModule(java.util.Properties modConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ModuleFactory INSTANCE

propertiesFileFilter

protected final java.io.FilenameFilter propertiesFileFilter
Constructor Detail

ModuleFactory

protected ModuleFactory()
Method Detail

getModules

public java.util.List getModules()

getModuleDescriptors

public java.io.File[] getModuleDescriptors()

getModuleHomeDir

public java.io.File getModuleHomeDir()

loadModule

public Module loadModule(java.io.File modDescriptor)
                  throws java.io.IOException,
                         ModuleLoadException
Throws:
java.io.IOException
ModuleLoadException

loadModule

public Module loadModule(java.util.Properties modConfig)
                  throws ModuleLoadException
Throws:
ModuleLoadException

loadModule

public Module loadModule(java.lang.ClassLoader loader,
                         java.lang.String className)
                  throws ModuleLoadException
Throws:
ModuleLoadException

getCPURLs

public java.net.URL[] getCPURLs(java.util.Properties modConfig)
                         throws ModuleLoadException
Throws:
ModuleLoadException
Since:
0.9.3