Class NetworkConfig

java.lang.Object
com.peterphi.std.guice.common.serviceprops.net.NetworkConfig

public class NetworkConfig extends Object
Describes some configuration to load (and keep up-to-date) over the network.
If constructed by Guice this will automatically keep the main service configuration up-to-date
  • Field Details

    • path

      @Inject public String path
    • initialRevision

      @Inject(optional=true) public String initialRevision
    • properties

      @Inject public GuiceConfig properties
  • Constructor Details

    • NetworkConfig

      @Inject public NetworkConfig()
    • NetworkConfig

      public NetworkConfig(GuiceConfig properties, String path)
      Parameters:
      properties - the properties object to update with the remote config data
      path - the path on the remote site to use
  • Method Details

    • getLastRevision

      public String getLastRevision()
    • setLastRevision

      public void setLastRevision(String revision)
    • toString

      public String toString()
      Overrides:
      toString in class Object