use of org.eclipse.dash.licenses.LicenseSupport in project dash-licenses by eclipse.
the class LicenseToolModule method configure.
@Override
protected void configure() {
bind(ISettings.class).toInstance(settings);
bind(LicenseChecker.class).toInstance(new LicenseChecker());
bind(EclipseFoundationSupport.class).toInstance(new EclipseFoundationSupport());
bind(ClearlyDefinedSupport.class).toInstance(new ClearlyDefinedSupport());
bind(LicenseSupport.class).toInstance(new LicenseSupport());
bind(GitLabSupport.class).toInstance(new GitLabSupport());
bind(IHttpClientService.class).toInstance(new HttpClientService());
bind(ExtendedContentDataService.class).toInstance(new ExtendedContentDataService());
bind(IProxySettings.class).toProvider(Providers.of(proxySettings));
Multibinder<IExtendedContentDataProvider> extendedContentDataProviders = Multibinder.newSetBinder(binder(), IExtendedContentDataProvider.class);
extendedContentDataProviders.addBinding().to(NpmjsExtendedContentDataProvider.class);
extendedContentDataProviders.addBinding().to(MavenCentralExtendedContentDataProvider.class);
extendedContentDataProviders.addBinding().to(PypiExtendedContentDataProvider.class);
extendedContentDataProviders.addBinding().to(GitHubExtendedContentDataProvider.class);
// classifierBinder.addBinding().to(GithubDataProvider.class);
}
use of org.eclipse.dash.licenses.LicenseSupport in project dash-licenses by eclipse.
the class TestLicenseToolModule method configure.
@Override
protected void configure() {
bind(ISettings.class).toInstance(settings);
bind(IHttpClientService.class).toInstance(getHttpClientService());
bind(LicenseChecker.class).toInstance(new LicenseChecker());
bind(EclipseFoundationSupport.class).toInstance(new EclipseFoundationSupport());
bind(ClearlyDefinedSupport.class).toInstance(new ClearlyDefinedSupport());
bind(LicenseSupport.class).toInstance(new LicenseSupport());
bind(ExtendedContentDataService.class).toInstance(new ExtendedContentDataService());
Multibinder<IExtendedContentDataProvider> classifierBinder = Multibinder.newSetBinder(binder(), IExtendedContentDataProvider.class);
classifierBinder.addBinding().to(NpmjsExtendedContentDataProvider.class);
classifierBinder.addBinding().to(MavenCentralExtendedContentDataProvider.class);
classifierBinder.addBinding().to(PypiExtendedContentDataProvider.class);
// classifierBinder.addBinding().to(GithubDataProvider.class);
}
use of org.eclipse.dash.licenses.LicenseSupport in project dash-licenses by eclipse.
the class LicenseSupportTests method setup.
@BeforeEach
void setup() {
Injector injector = Guice.createInjector(new TestLicenseToolModule());
licenseSupport = injector.getInstance(LicenseSupport.class);
}
Aggregations