package edu.umn.biomedicus.application;

import com.google.inject.AbstractModule;
import edu.umn.biomedicus.annotations.DocumentScoped;
import edu.umn.biomedicus.annotations.ProcessorScoped;

/**
 *
 */
class BiomedicusModule extends AbstractModule {
    @Override
    protected void configure() {
        bindScope(DocumentScoped.class, BiomedicusScopes.DOCUMENT_SCOPE);
        bindScope(ProcessorScoped.class, BiomedicusScopes.PROCESSOR_SCOPE);
    }
}

@@ -183,16 +183,64 @@
 rScoped;
+%0Aimport edu.umn.biomedicus.common.text.Document;
 %0A%0A/**%0A *
@@ -484,21 +484,138 @@
 SSOR_SCOPE);
+%0A%0A        bind(Document.class).toProvider(BiomedicusScopes.providedViaSeeding()).in(BiomedicusScopes.DOCUMENT_SCOPE);
 %0A    %7D%0A%7D%0A

Document scoping