Set Environment resolver defaults
@@ -336,9 +336,12 @@ public class Environment {
}
public Environment build() {
- return new Environment(configServerURIs, environment, region, parentHostHostname, inetAddressResolver,
- pathResolver, logstashNodes, feedEndpoint,
- Optional.ofNullable(keyStoreOptions), Optional.ofNullable(trustStoreOptions),
+ return new Environment(configServerURIs, environment, region, parentHostHostname,
+ Optional.ofNullable(inetAddressResolver).orElseGet(InetAddressResolver::new),
+ Optional.ofNullable(pathResolver).orElseGet(PathResolver::new),
+ logstashNodes, feedEndpoint,
+ Optional.ofNullable(keyStoreOptions),
+ Optional.ofNullable(trustStoreOptions),
Optional.ofNullable(athenzIdentity),
nodeType);
}
