[
https://issues.apache.org/jira/browse/SAMZA-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Branislav Cogic updated SAMZA-1005:
-----------------------------------
Attachment: SAMZA-1005_0.patch
> 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
> Assignee: Branislav Cogic
> Labels: newbie
> Fix For: 0.11.0
>
> Attachments: SAMZA-1005_0.patch
>
>
> 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)