Package org.hortonmachine.modules
Class Modules
- java.lang.Object
-
- org.hortonmachine.modules.Modules
-
public class Modules extends Object
-
-
Field Summary
Fields Modifier and Type Field Description String[]allClassesAn array of all the class names of the modules.String[]allFieldsAn array of all the fields used in the modules.LinkedHashMap<String,Class<?>>moduleName2ClassAmapof all the class names and the class itself.LinkedHashMap<String,List<org.hortonmachine.gears.libs.modules.ClassField>>moduleName2FieldsAmapof all the class names and their fields.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModulesgetInstance()Retrieves theModules.static ModulesgetInstance(URL baseclassUrl)Retrieves theJGrassGearsfor a particular url path.static voidmain(String[] args)
-
-
-
Field Detail
-
moduleName2Class
public final LinkedHashMap<String,Class<?>> moduleName2Class
Amapof all the class names and the class itself.
-
moduleName2Fields
public final LinkedHashMap<String,List<org.hortonmachine.gears.libs.modules.ClassField>> moduleName2Fields
Amapof all the class names and their fields.
-
allFields
public String[] allFields
An array of all the fields used in the modules.
-
allClasses
public String[] allClasses
An array of all the class names of the modules.
-
-
Method Detail
-
getInstance
public static Modules getInstance()
Retrieves theModules. If it exists, that instance is returned.- Returns:
- the Modules annotations class.
-
getInstance
public static Modules getInstance(URL baseclassUrl)
Retrieves theJGrassGearsfor a particular url path.When this method is called, the
JGrassGearsinstance is reset.Be careful when you use this. This is a workaround needed for eclipse systems, where the url returned by the urlfinder is a bundleresource that would need to be resolved first with rcp tools we do not want to depend on.
- Returns:
- the JGrassGears annotations class.
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-