5: Provide DI for core package
This commit is contained in:
14
src/main/java/com/bartek/esa/core/di/CoreModule.java
Normal file
14
src/main/java/com/bartek/esa/core/di/CoreModule.java
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user