DocumentのHiltモジュールを実装した

This commit is contained in:
ろむねこ 2023-12-14 11:32:22 +09:00
parent 2cd506d062
commit 8196e9afcb
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,4 +1,20 @@
package one.nem.lacerta.data.module; 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);
} }