com.peterphi.std.guice.common.serviceprops.net.NetworkConfigGuiceRole Maven / Gradle / Ivy
package com.peterphi.std.guice.common.serviceprops.net;
import com.codahale.metrics.MetricRegistry;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Stage;
import com.peterphi.std.guice.apploader.GuiceRole;
import com.peterphi.std.guice.apploader.GuiceSetup;
import com.peterphi.std.guice.common.ClassScannerFactory;
import com.peterphi.std.guice.common.serviceprops.composite.GuiceConfig;
import com.peterphi.std.io.PropertyFile;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
public class NetworkConfigGuiceRole implements GuiceRole
{
@Override
public void adjustConfigurations(final List configs)
{
}
@Override
public void register(final Stage stage,
final ClassScannerFactory scannerFactory,
final GuiceConfig config,
final GuiceSetup setup,
final List modules,
final AtomicReference injectorRef,
final MetricRegistry metrics)
{
modules.add(new NetworkConfigReloadModule());
}
@Override
public void injectorCreated(final Stage stage,
final ClassScannerFactory scannerFactory,
final GuiceConfig config,
final GuiceSetup setup,
final List modules,
final AtomicReference injectorRef,
final MetricRegistry metrics)
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy