Skip to content
Snippets Groups Projects
Commit 3074c949 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

DI: Remove the injector leftover from the ExplorationModule service.

parent 0498c90c
No related branches found
No related tags found
1 merge request!2Dependency injection
ExplorationConstraintTransformationService.java 5e7117398827ae129b3c9a8a16457d816ba665a7 RED
ExplorationEvaluationService.java ed22af146e8230a39a47ba60224b824b6d0ac599 RED
ExplorationModuleService.java ce426b60fed15b3532f0bfd04d25fb1ec777b93d RED
ExplorationModuleService.java 18799dc62ecdfccfe635d9a168f6c22e0e662a0b YELLOW
ExplorationRepairService.java 940ceda7c8c48f282132355249af1fe0a005c0f5 RED
ExplorationTransformationService.java 36e2368dd6098e1f3aa210a6defd4f269628e28a RED
......@@ -35,9 +35,6 @@ import org.opt4j.core.problem.Decoder;
import com.google.common.collect.ClassToInstanceMap;
import com.google.common.collect.MutableClassToInstanceMap;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
/**
* Implementation of the {@link IExplorationModuleService}.
......@@ -46,13 +43,6 @@ import com.google.inject.Module;
*/
public class ExplorationModuleService implements IExplorationModuleService {
/**
* Guice {@link Injector} for the DSE at which the registered {@link Module} that define a DSE
* process are installed. The backend Opt4J {@link Injector} will be used as a child
* {@link Injector}.
*/
private Injector dseInjector;
/** Set referencing all registered optimization variables. */
private Set<Class<? extends Genotype>> genotypes = new HashSet<>();
......@@ -92,7 +82,7 @@ public class ExplorationModuleService implements IExplorationModuleService {
/** {@inheritDoc} */
@Override
public void startService() {
dseInjector = Guice.createInjector();
// Not needed.
}
/** {@inheritDoc} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment