Class Lesto

java.lang.Object
org.hortonmachine.lesto.Lesto

public class Lesto
extends java.lang.Object
Class presenting modules names and classes.
Author:
Andrea Antonello (www.hydrologis.com)
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String[] allClasses
    An array of all the class names of the modules.
    java.lang.String[] allFields
    An array of all the fields used in the modules.
    java.util.LinkedHashMap<java.lang.String,​java.lang.Class<?>> moduleName2Class
    A map of all the class names and the class itself.
    java.util.LinkedHashMap<java.lang.String,​java.util.List<org.hortonmachine.gears.libs.modules.ClassField>> moduleName2Fields
    A map of all the class names and their fields.
  • Method Summary

    Modifier and Type Method Description
    static Lesto getInstance()
    Retrieves the Lesto.
    static Lesto getInstance​(java.net.URL baseclassUrl)
    Retrieves the Lesto for a particular url path.
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • moduleName2Class

      public final java.util.LinkedHashMap<java.lang.String,​java.lang.Class<?>> moduleName2Class
      A map of all the class names and the class itself.
    • moduleName2Fields

      public final java.util.LinkedHashMap<java.lang.String,​java.util.List<org.hortonmachine.gears.libs.modules.ClassField>> moduleName2Fields
      A map of all the class names and their fields.
    • allFields

      public java.lang.String[] allFields
      An array of all the fields used in the modules.
    • allClasses

      public java.lang.String[] allClasses
      An array of all the class names of the modules.
  • Method Details

    • getInstance

      public static Lesto getInstance()
      Retrieves the Lesto. If it exists, that instance is returned.
      Returns:
      the lesto annotations class.
    • getInstance

      public static Lesto getInstance​(java.net.URL baseclassUrl)
      Retrieves the Lesto for a particular url path.

      When this method is called, the Lesto instance 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 horton machine annotations class.
    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Throws:
      java.io.IOException