| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.core.io.support.Module
public class Module
This class represents a simplified view of a module (EL4Ant build system unit). It contains its name, the configuration files and the dependencies.
| Field Summary | |
|---|---|
static String | 
DELIMITER
The delimiter used to separate configuration files and dependencies.  | 
protected  ClassLoader | 
m_classLoader
Is the used class loader.  | 
| Constructor Summary | |
|---|---|
Module(String name)
Creates a new module with the given name.  | 
|
Module(String name,
       String moduleLocation)
Creates a new module with the given name and the module's location.  | 
|
Module(String name,
       String moduleLocation,
       ClassLoader classLoader)
Creates a new module with the given name, the module's location and resolves resources by using the given class loader.  | 
|
| Method Summary | |
|---|---|
 void | 
addAllConfigFiles(String configFiles)
Adds all items -- separated by DELIMITER -- to the configuration
 file list. | 
 void | 
addAllDependencies(String dependencies)
Adds all item -- separated by DELIMITER -- to the dependency
 list. | 
 void | 
addConfigFile(String configFile)
Adds the given configuration file to the module.  | 
 void | 
addDependency(String dependency)
Adds the given dependency to the module.  | 
 Resource | 
getConfigFileAsResource(String configFile)
Converts the given config file in a resource that takes place in the current module.  | 
 List<Resource> | 
getConfigFileResourcesAsList()
 | 
 String[] | 
getConfigFiles()
 | 
 List<String> | 
getConfigFilesAsList()
 | 
 String[] | 
getDependencies()
 | 
 List<String> | 
getDependenciesAsList()
 | 
 String | 
getModuleLocation()
 | 
 String | 
getName()
 | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DELIMITER
protected final ClassLoader m_classLoader
| Constructor Detail | 
|---|
public Module(String name)
name - The module's name.
public Module(String name,
              String moduleLocation)
name - The module's name.moduleLocation - The module's location.
public Module(String name,
              String moduleLocation,
              ClassLoader classLoader)
name - The module's name.moduleLocation - The module's location.classLoader - The class loader to resolve resources.| Method Detail | 
|---|
public void addAllConfigFiles(String configFiles)
DELIMITER -- to the configuration
 file list.
configFiles - The list of configuration files to add.public void addConfigFile(String configFile)
configFile - The configuration file to add.public void addAllDependencies(String dependencies)
DELIMITER -- to the dependency
 list.
dependencies - The list of dependencies to add.public void addDependency(String dependency)
dependency - The dependency to add.public String[] getConfigFiles()
public String[] getDependencies()
public List<String> getConfigFilesAsList()
public List<String> getDependenciesAsList()
public String getName()
public String getModuleLocation()
public List<Resource> getConfigFileResourcesAsList()
public Resource getConfigFileAsResource(String configFile)
configFile - The config file to convert.
public String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||