1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.rwx.maven.asciidoc.services.modules;
18
19 import com.google.inject.AbstractModule;
20 import com.google.inject.Singleton;
21 import net.rwx.maven.asciidoc.backends.BackendService;
22 import net.rwx.maven.asciidoc.backends.impl.BackendServiceImpl;
23 import net.rwx.maven.asciidoc.services.AsciidocService;
24 import net.rwx.maven.asciidoc.services.FopService;
25 import net.rwx.maven.asciidoc.services.ServiceOrchestrator;
26 import net.rwx.maven.asciidoc.services.TransformationService;
27 import net.rwx.maven.asciidoc.services.impl.AsciidocServiceImpl;
28 import net.rwx.maven.asciidoc.services.impl.FopServiceImpl;
29 import net.rwx.maven.asciidoc.services.impl.ServiceOrchestratorImpl;
30 import net.rwx.maven.asciidoc.services.impl.TransformationServiceImpl;
31
32
33
34
35
36
37 public class AsciidocModule extends AbstractModule {
38
39 @Override
40 protected void configure() {
41 bind(ServiceOrchestrator.class).to(ServiceOrchestratorImpl.class).in(Singleton.class);
42 bind(AsciidocService.class).to(AsciidocServiceImpl.class).in(Singleton.class);
43 bind(TransformationService.class).to(TransformationServiceImpl.class).in(Singleton.class);
44 bind(FopService.class).to(FopServiceImpl.class).in(Singleton.class);
45 bind(BackendService.class).to(BackendServiceImpl.class).in(Singleton.class);
46 }
47
48 }