Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

add interface that allows instantiation of loaded classes #43

Closed
wants to merge 1 commit into from
Closed

add interface that allows instantiation of loaded classes #43

wants to merge 1 commit into from

Conversation

stewartoallen
Copy link
Contributor

which in turn causes static { ... } to be executed

@mspiegel
Copy link
Contributor

Oops. When I had implemented com.addthis.hydra.common.plugins.PluginReader I had solved this problem by using the Class#forName(String, boolean, ClassLoader) method. I have committed a patch to the DynamicLoader class that uses Class#forName() instead of ClassLoader#loadClass(String). The forName() method will initialize the class and execute the static block. This should fix the issue.

@stewartoallen stewartoallen deleted the at-pull-009 branch March 11, 2014 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants