Class NetworkIdentityConfigProvider

  • All Implemented Interfaces:
    ConfigProvider

    public class NetworkIdentityConfigProvider
    extends Object
    implements ConfigProvider
    Config provider that determines the named network on which the service is running.

    This is useful when a system of services are deployed in multiple locations like separate AWS VPCs or subnets.

    Default resolution lookup keys are as follows:

    • System Property: kiwi.network
    • Environment Variable: KIWI_NETWORK
    • External Config File: network
    See Also:
    for resolution order
    • Method Detail

      • canProvide

        public boolean canProvide()
        Description copied from interface: ConfigProvider
        Determines if a provider has enough environmental awareness to provide data.
        Specified by:
        canProvide in interface ConfigProvider
        Returns:
        true if the provider can provide data, otherwise false