I am trying to use Google Guice in eclipse plugin development. I imported Guice jar as another plugin project. But for some reason, Guice cannot add dependency.
Any ideas ???
This error message
com.google.inject.ConfigurationException: Guice configuration errors:
1) No implementation for java.util.List<java.lang.String> was bound.
while locating java.util.List<java.lang.String>
for parameter 1 at com.checker.extension.provider.util.PluginUtils.<init>(Unknown Source)
while locating com.checker.extension.provider.util.PluginUtils
1 error
EDIT1
One thing I would like to mention is that the configuration works correctly when I use a normal Java application , but this is not so when I use the plugin project
EDIT2
Below is the code I'm using
@Override
protected void configure() {
bind(List.class).toInstance(DIObjects.buildFolderNames);
}
Here DIObjects.buildFolderNamesis the static field I need to enter. The designation DIObjects.buildFolderNames is as follows.
public static List<String> buildFolderNames;
and I initialized this field.
Is the problem due to different eclipse and Guice class loaders ???