Search in sources :

Example 1 with GitLabSupport

use of org.eclipse.dash.licenses.review.GitLabSupport 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);
}
Also used : ClearlyDefinedSupport(org.eclipse.dash.licenses.clearlydefined.ClearlyDefinedSupport) IProxySettings(org.eclipse.dash.licenses.IProxySettings) EclipseFoundationSupport(org.eclipse.dash.licenses.foundation.EclipseFoundationSupport) HttpClientService(org.eclipse.dash.licenses.http.HttpClientService) IHttpClientService(org.eclipse.dash.licenses.http.IHttpClientService) ExtendedContentDataService(org.eclipse.dash.licenses.extended.ExtendedContentDataService) IHttpClientService(org.eclipse.dash.licenses.http.IHttpClientService) IExtendedContentDataProvider(org.eclipse.dash.licenses.extended.IExtendedContentDataProvider) LicenseChecker(org.eclipse.dash.licenses.LicenseChecker) GitLabSupport(org.eclipse.dash.licenses.review.GitLabSupport) ISettings(org.eclipse.dash.licenses.ISettings) LicenseSupport(org.eclipse.dash.licenses.LicenseSupport)

Aggregations

IProxySettings (org.eclipse.dash.licenses.IProxySettings)1 ISettings (org.eclipse.dash.licenses.ISettings)1 LicenseChecker (org.eclipse.dash.licenses.LicenseChecker)1 LicenseSupport (org.eclipse.dash.licenses.LicenseSupport)1 ClearlyDefinedSupport (org.eclipse.dash.licenses.clearlydefined.ClearlyDefinedSupport)1 ExtendedContentDataService (org.eclipse.dash.licenses.extended.ExtendedContentDataService)1 IExtendedContentDataProvider (org.eclipse.dash.licenses.extended.IExtendedContentDataProvider)1 EclipseFoundationSupport (org.eclipse.dash.licenses.foundation.EclipseFoundationSupport)1 HttpClientService (org.eclipse.dash.licenses.http.HttpClientService)1 IHttpClientService (org.eclipse.dash.licenses.http.IHttpClientService)1 GitLabSupport (org.eclipse.dash.licenses.review.GitLabSupport)1