You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Jake Maes (JIRA)" <ji...@apache.org> on 2016/08/23 17:07:22 UTC

[jira] [Created] (SAMZA-1005) Refactor class instantiation code to a helper class.

Jake Maes created SAMZA-1005:
--------------------------------

             Summary: Refactor class instantiation code to a helper class. 
                 Key: SAMZA-1005
                 URL: https://issues.apache.org/jira/browse/SAMZA-1005
             Project: Samza
          Issue Type: Bug
            Reporter: Jake Maes


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;
}

}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)