mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
DocumentのHiltモジュールを実装した
This commit is contained in:
parent
2cd506d062
commit
8196e9afcb
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user