Class TrackerFactory


  • public final class TrackerFactory
    extends java.lang.Object
    Factory to instantiate the trackers with the reflection
    Author:
    dbutano
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Tracker getTracker​(java.lang.String className, java.sql.Connection con, java.util.Queue<Track> trackQueue)
      Return the tracker instantiated with the reflection
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTracker

        public static Tracker getTracker​(java.lang.String className,
                                         java.sql.Connection con,
                                         java.util.Queue<Track> trackQueue)
                                  throws java.lang.Exception
        Return the tracker instantiated with the reflection
        Parameters:
        className - name of the class to instantiate
        con - connection to the database
        trackQueue - tracks to be parsed
        Returns:
        the tracker instantiated
        Throws:
        java.lang.Exception - if something goes wrong