package com.peterphi.std.guice.common.serviceprops.net;

import com.google.inject.AbstractModule;

public class NetworkConfigReloadModule extends AbstractModule
{
	@Override
	protected void configure()
	{
		bind(NetworkConfigReloadDaemon.class).asEagerSingleton();
	}
}

@@ -90,16 +90,220 @@
 tModule;
+%0Aimport com.google.inject.Provides;%0Aimport com.google.inject.Singleton;%0Aimport com.peterphi.std.guice.config.rest.iface.ConfigRestService;%0Aimport com.peterphi.std.guice.restclient.JAXRSProxyClientFactory;
 %0A%0Apublic
@@ -465,10 +465,170 @@
 n();%0A%09%7D%0A
+%0A%0A%09@Provides%0A%09@Singleton%0A%09public ConfigRestService getConfigService(JAXRSProxyClientFactory factory)%0A%09%7B%0A%09%09return factory.getClient(ConfigRestService.class);%0A%09%7D%0A
 %7D%0A

Add explicit jax-rs client provider for ConfigRestService so that scan.packages doesn't have to include ConfigRestService