|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.moduleloader.ModuleLoader2
This is the module loader that loads modules implementing the ModuleInterface.
This is a singleton. There are convenience functions that are static to access the module.
| Field Summary | |
static String |
CLASS_SUFFIX
Class file suffix. |
| Method Summary | |
static void |
addClass(String classname)
Add a class from the current class loader. |
static Collection |
allModules()
Get a Collection with all the names. |
static void |
doLoad(boolean failingAllowed)
Enables all selected modules and disabling all modules not selected. |
static String |
getDescription(String name)
Create a description of the module based on the information provided by the module itself. |
static ModuleLoader2 |
getInstance()
Get hold of the instance of this object. |
static boolean |
isEnabled(String name)
Gets the loaded status for some other module. |
static boolean |
isSelected(String name)
Get the selected. |
static SortedMap |
notYetLoadedModules()
Get a list of not yet loaded modules. |
static void |
setSelected(String name,
boolean value)
Set the selected value. |
void |
setSelectedInternal(String name,
boolean value)
Set the selected value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String CLASS_SUFFIX
| Method Detail |
public static ModuleLoader2 getInstance()
public static void doLoad(boolean failingAllowed)
In short this attempts to make the modules obey their selection.
failingAllowed - is true if enabling or disabling of
some of the modules is allowed to fail.public static boolean isEnabled(String name)
name - is the module name of the queried module
public static Collection allModules()
public static boolean isSelected(String name)
name - The name of the module.
true if the module is selected.
public static void setSelected(String name,
boolean value)
name - The name of the module.value - Selected or not.
public void setSelectedInternal(String name,
boolean value)
name - The name of the module.value - Selected or not.setSelected(String, boolean)public static String getDescription(String name)
name - The name of the module.
public static SortedMap notYetLoadedModules()
TODO: For the moment these modules are hardcoded into this file. Eventually they will be available in some config file.
SortedMap
from name (String)
to classname String.
public static void addClass(String classname)
throws ClassNotFoundException
classname - The name of the class (including package).
ClassNotFoundException - if the class classname is not found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |