4: Add Decompiler to DI container
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
package com.bartek.esa.decompiler.decompiler;
|
||||||
|
|
||||||
|
import javax.inject.Inject;
|
||||||
|
|
||||||
|
public class Decompiler {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
public Decompiler() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.bartek.esa.decompiler.di;
|
||||||
|
|
||||||
|
import com.bartek.esa.decompiler.decompiler.Decompiler;
|
||||||
|
import dagger.Module;
|
||||||
|
import dagger.Provides;
|
||||||
|
|
||||||
|
@Module
|
||||||
|
public class DecompilerModule {
|
||||||
|
|
||||||
|
@Provides
|
||||||
|
public Decompiler decompiler() {
|
||||||
|
return new Decompiler();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ package com.bartek.esa.di;
|
|||||||
|
|
||||||
import com.bartek.esa.EsaMain;
|
import com.bartek.esa.EsaMain;
|
||||||
import com.bartek.esa.cli.di.CliModule;
|
import com.bartek.esa.cli.di.CliModule;
|
||||||
|
import com.bartek.esa.decompiler.di.DecompilerModule;
|
||||||
import com.bartek.esa.dispatcher.di.DispatcherModule;
|
import com.bartek.esa.dispatcher.di.DispatcherModule;
|
||||||
import com.bartek.esa.file.di.FileModule;
|
import com.bartek.esa.file.di.FileModule;
|
||||||
import dagger.Component;
|
import dagger.Component;
|
||||||
@@ -9,7 +10,8 @@ import dagger.Component;
|
|||||||
@Component(modules = {
|
@Component(modules = {
|
||||||
CliModule.class,
|
CliModule.class,
|
||||||
DispatcherModule.class,
|
DispatcherModule.class,
|
||||||
FileModule.class
|
FileModule.class,
|
||||||
|
DecompilerModule.class
|
||||||
})
|
})
|
||||||
public interface DependencyInjector {
|
public interface DependencyInjector {
|
||||||
EsaMain esa();
|
EsaMain esa();
|
||||||
|
|||||||
Reference in New Issue
Block a user