code.loader
Class ModuleLoaderFactory

java.lang.Object
  extended by code.loader.ModuleLoaderFactory

public class ModuleLoaderFactory
extends java.lang.Object

ModuleLoaderFactory instantiates a ModuleLoader based upon the type of the module file to be loaded (currently one of .class/.txt/.xml)

This class is responsible for

  1. Creating suitable ModuleLoader based upon module filename's extention.

Since:
Jul 15, 2005
Author:
Sunita Marathe

Field Summary
private static ClassModuleLoader classModuleLoader
           
private static TxtXMLModuleLoader txtXmlModuleLoader
           
 
Constructor Summary
private ModuleLoaderFactory()
          prevent instance creation.
 
Method Summary
static ModuleLoader createModuleLoader(java.lang.String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classModuleLoader

private static ClassModuleLoader classModuleLoader

txtXmlModuleLoader

private static TxtXMLModuleLoader txtXmlModuleLoader
Constructor Detail

ModuleLoaderFactory

private ModuleLoaderFactory()
prevent instance creation.

Method Detail

createModuleLoader

public static ModuleLoader createModuleLoader(java.lang.String filePath)
                                       throws FileFormatNotSupportException
Throws:
FileFormatNotSupportException