Package org.hortonmachine.gears
Class JGrassGears
- java.lang.Object
-
- org.hortonmachine.gears.JGrassGears
-
public class JGrassGears extends Object
Class presenting modules names and classes.- Since:
- 0.7.0
- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Class<?>>moduleName2ClassAmapof all the class names and the class itself.Map<String,List<ClassField>>moduleName2FieldsAmapof all the class names and their fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAllClasses()String[]getAllFields()static JGrassGearsgetInstance()Retrieves theJGrassGears.static JGrassGearsgetInstance(URL baseclassUrl)Retrieves theJGrassGearsfor a particular url path.static voidmain(String[] args)voidsetAllClasses(String[] allClasses)voidsetAllFields(String[] allFields)
-
-
-
Method Detail
-
getAllFields
public String[] getAllFields()
-
setAllFields
public void setAllFields(String[] allFields)
-
getAllClasses
public String[] getAllClasses()
-
setAllClasses
public void setAllClasses(String[] allClasses)
-
getInstance
public static JGrassGears getInstance()
Retrieves theJGrassGears. If it exists, that instance is returned.- Returns:
- the JGrassGears annotations class.
-
getInstance
public static JGrassGears 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
-
-