mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Hilt Module実装
This commit is contained in:
parent
4ed88e8fac
commit
12cba0242b
|
@ -1,4 +1,16 @@
|
||||||
package one.nem.lacerta.source.jgit.module;
|
package one.nem.lacerta.source.jgit.module;
|
||||||
|
|
||||||
public class ManageRepoModule {
|
import dagger.Binds;
|
||||||
|
import dagger.Module;
|
||||||
|
import dagger.hilt.InstallIn;
|
||||||
|
import dagger.hilt.components.SingletonComponent;
|
||||||
|
import one.nem.lacerta.source.jgit.ManageRepo;
|
||||||
|
import one.nem.lacerta.source.jgit.impl.ManageRepoImpl;
|
||||||
|
|
||||||
|
@Module
|
||||||
|
@InstallIn(SingletonComponent.class)
|
||||||
|
abstract public class ManageRepoModule {
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
public abstract ManageRepo bindManageRepo(ManageRepoImpl manageRepoImpl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user