Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1005

Refactor class instantiation code to a helper class.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:

      Description

      There are a number of places in the code where ```Class.forName(...).instance()``` is used to instantiate a class by name.

      We should refactor those all to a common helper class for modularity.

      class ClassLoaderHelper<T> {
      ...
      public static T fromClassName(String klassName)

      { ... return (T) instance; } }

        Attachments

        1. SAMZA-1005_0.patch
          12 kB
          Branislav Cogic

          Activity

            People

            • Assignee:
              banecogic Branislav Cogic
              Reporter:
              jmakes Jake Maes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: