com.peterphi.std.guice.apploader.BasicSetup Maven / Gradle / Ivy
package com.peterphi.std.guice.apploader;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.peterphi.std.guice.common.serviceprops.composite.GuiceConfig;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class BasicSetup implements GuiceSetup
{
private final List modules;
public BasicSetup(List modules)
{
this.modules = modules;
}
public BasicSetup(Module... modules)
{
this.modules = new ArrayList();
if (modules != null)
Collections.addAll(this.modules, modules);
}
@Override
public void registerModules(List modules, GuiceConfig config)
{
modules.addAll(this.modules);
}
@Override
public void injectorCreated(Injector injector)
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy