dependency injection in Xtext source code [message #1017032] |
Fri, 08 March 2013 12:14  |
Eclipse User |
|
|
|
Hello,
In the classes org.eclipse.xtext.xtext.ui.wizard.project.XtextProjectCreator and org.eclipse.xtext.ui.wizard.AbstractProjectCreator of the source code of Xtext, the three following fields are instantiated using dependency injection:
@Inject
@Named("file.extensions")
private String fileExtension;
@Inject
private Provider<PluginProjectFactory> projectFactoryProvider;
@Inject
private Provider<FeatureProjectFactory> featureProjFactoryProvider;
What are the classes in the source code of Xtext that specifies how to instantiate these three fields? I think that these classes should implement "com.google.inject.Module" or inherit from another class that implements "com.google.inject.Module". However, there are so many classes in the source code of XText that I have been unable to locate these classes.
Any help would be appreciated.
Thanks in advance for any answer.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14293 seconds