Skip to content

Commit

Permalink
Merge pull request #37 from denuwanthi/master
Browse files Browse the repository at this point in the history
  • Loading branch information
pulasthi committed Mar 13, 2015
2 parents ffe2f8f + b52b4a2 commit 815a042
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ public static Execution loadCustomExecutors(String className, Map parameterMap)

Execution customExecutors;
try {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class<?> customCodeClass = Class.forName(className, true, loader);
Class<?> customCodeClass = Utils.class.getClassLoader().loadClass(className);
customExecutors = (Execution) customCodeClass.newInstance();
customExecutors.init(parameterMap);

Expand Down

0 comments on commit 815a042

Please sign in to comment.