@Override protected void configure() { bind(IResourceClusteringPolicy.class).to(N4JSVerboseClusteringPolicy.class); bind(XtextBuilder.class).to(N4JSBuildTypeTrackingBuilder.class); bind(ClusteringBuilderState.class).to(N4JSGenerateImmediatelyBuilderState.class); bind(IStorage2UriMapper.class).to(N4JSStorage2UriMapper.class); bind(PersistedStateProvider.class).to(ContributingResourceDescriptionPersister.class); bind(IBuildLogger.class).annotatedWith(BuilderState.class).to(BuilderStateLogger.class); bind(DirtyStateManager.class).to(PrevStateAwareDirtyStateManager.class); }
@Override public void configure(final Binder binder) { super.configure(binder); binder.bind(IResourceLoader.class) .annotatedWith(Names.named(ClusteringBuilderState.RESOURCELOADER_GLOBAL_INDEX)) .toProvider(ResourceLoaderProviders.getParallelLoader(8, 16)); binder.bind(IResourceLoader.class) .annotatedWith(Names.named(ClusteringBuilderState.RESOURCELOADER_CROSS_LINKING)) .toProvider(ResourceLoaderProviders.getParallelLoader(8, 16)); }