mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Module実装
This commit is contained in:
parent
5aed05adc4
commit
065d3594ac
|
@ -1,4 +1,16 @@
|
||||||
package one.nem.lacerta.data.module;
|
package one.nem.lacerta.data.module;
|
||||||
|
|
||||||
public class CommonsModule {
|
import dagger.Binds;
|
||||||
|
import dagger.Module;
|
||||||
|
import dagger.hilt.InstallIn;
|
||||||
|
import dagger.hilt.components.SingletonComponent;
|
||||||
|
import one.nem.lacerta.data.repository.Commons;
|
||||||
|
import one.nem.lacerta.data.impl.CommonsImpl;
|
||||||
|
|
||||||
|
@Module
|
||||||
|
@InstallIn(SingletonComponent.class)
|
||||||
|
abstract class CommonsModule {
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
public abstract Commons bindCommons(CommonsImpl commonsImpl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user