5: Provide DI for core package

This commit is contained in:
Bartłomiej Pluta
2019-03-31 14:53:19 +02:00
parent dc44f81783
commit 68b9d87b43
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package com.bartek.esa.core.di;
import com.bartek.esa.core.executor.PluginExecutor;
import dagger.Module;
import dagger.Provides;
@Module
public class CoreModule {
@Provides
public PluginExecutor pluginExecutor() {
return new PluginExecutor();
}
}

View File

@@ -2,6 +2,7 @@ package com.bartek.esa.di;
import com.bartek.esa.EsaMain;
import com.bartek.esa.cli.di.CliModule;
import com.bartek.esa.core.di.CoreModule;
import com.bartek.esa.decompiler.di.DecompilerModule;
import com.bartek.esa.dispatcher.di.DispatcherModule;
import com.bartek.esa.file.di.FileModule;
@@ -11,7 +12,8 @@ import dagger.Component;
CliModule.class,
DispatcherModule.class,
FileModule.class,
DecompilerModule.class
DecompilerModule.class,
CoreModule.class
})
public interface DependencyInjector {
EsaMain esa();