From 8196e9afcba711e2ff6c33f83f12690e840d238f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 11:32:22 +0900 Subject: [PATCH] =?UTF-8?q?Document=E3=81=AEHilt=E3=83=A2=E3=82=B8?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=83=AB=E3=82=92=E5=AE=9F=E8=A3=85=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/data/module/DocumentModule.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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); + }