Skip to content

Commit

Permalink
simplified the custom injector provider
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Apr 20, 2024
1 parent a5f8d4b commit 6ee5c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ protected ContentAssistFragmentTestLangRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// to access the testdata.stubs.StubbedList in this bundle
// allows for bindClassLoaderToInstance to get the class loader of this bundle
return new ContentAssistFragmentTestLangRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return ContentAssistFragmentTestLangInjectorProviderCustom.class
.getClassLoader();
}
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ protected XImportSectionTestLangRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// to access the testdata.stubs.StubbedList in this bundle
// allows for bindClassLoaderToInstance to get the class loader of this bundle
return new XImportSectionTestLangRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return XImportSectionTestLangInjectorProviderCustom.class
.getClassLoader();
}
};
}
}
Expand Down

0 comments on commit 6ee5c8c

Please sign in to comment.