diff --git a/data/src/main/java/one/nem/lacerta/data/module/DocumentModule.java b/data/src/main/java/one/nem/lacerta/data/module/DocumentModule.java index 3ed7981b..63f45043 100644 --- a/data/src/main/java/one/nem/lacerta/data/module/DocumentModule.java +++ b/data/src/main/java/one/nem/lacerta/data/module/DocumentModule.java @@ -1,4 +1,20 @@ package one.nem.lacerta.data.module; -public class DocumentModule { +import android.content.Context; + +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; + +import one.nem.lacerta.data.Document; +import one.nem.lacerta.data.impl.DocumentImpl; + +@Module +@InstallIn(SingletonComponent.class) // TODO-rca: Singletonであるべきか考える +abstract public class DocumentModule { + + @Binds + public abstract Document bindDocument(DocumentImpl documentImpl); + }