@Test public void testLoadFromJavaPropertyIsCaseSensitive() throws Exception { try { System.setProperty("force.xyz.url", "force: assertNull(ForceConnectorConfig.loadFromName("XYZ")); } finally { System.clearProperty("force.xyz.url"); } }
static ForceConnectorConfig loadFromName(String connectionName) throws IOException { Map<ForceConnectionProperty, String> propMap = ForceConnectorUtils.loadConnectorPropsFromName(connectionName); if (propMap == null) return null; ForceConnectorConfig config = new ForceConnectorConfig(); config.setPropsFromMap(propMap, connectionName); return config; }
ForceConnectorConfig extends ConnectorConfig implements Cloneable { static ForceConnectorConfig loadFromName(String connectionName) throws IOException { Map<ForceConnectionProperty, String> propMap = ForceConnectorUtils.loadConnectorPropsFromName(connectionName); if (propMap == null) return null; ForceConnectorConfig config = new ForceConnectorConfig(); config.setPropsFromMap(propMap, connectionName); return config; } }
ForceConnectorConfig extends ConnectorConfig implements Cloneable { static ForceConnectorConfig loadFromName(String connectionName) throws IOException { Map<ForceConnectionProperty, String> propMap = ForceConnectorUtils.loadConnectorPropsFromName(connectionName); if (propMap == null) return null; ForceConnectorConfig config = new ForceConnectorConfig(); config.setPropsFromMap(propMap, connectionName); return config; } ForceConnectorConfig(); }
ForceConnectorConfig extends ConnectorConfig implements Cloneable { static ForceConnectorConfig loadFromName(String connectionName) throws IOException { Map<ForceConnectionProperty, String> propMap = ForceConnectorUtils.loadConnectorPropsFromName(connectionName); if (propMap == null) return null; ForceConnectorConfig config = new ForceConnectorConfig(); config.setPropsFromMap(propMap, connectionName); return config; } ForceConnectorConfig(); @Override void setAuthEndpoint(String authEndpoint); String getClientId(); void setClientId(String clientId); void setConnectionUrl(String connectionUrl); @Override void setTraceMessage(boolean traceMessage); @Override void setUsername(String username); @Override PrintStream getTraceStream(); @Override int hashCode(); @Override boolean equals(Object obj); }
ForceConnectorConfig extends ConnectorConfig implements Cloneable { static ForceConnectorConfig loadFromName(String connectionName) throws IOException { Map<ForceConnectionProperty, String> propMap = ForceConnectorUtils.loadConnectorPropsFromName(connectionName); if (propMap == null) return null; ForceConnectorConfig config = new ForceConnectorConfig(); config.setPropsFromMap(propMap, connectionName); return config; } ForceConnectorConfig(); @Override void setAuthEndpoint(String authEndpoint); String getClientId(); void setClientId(String clientId); void setConnectionUrl(String connectionUrl); @Override void setTraceMessage(boolean traceMessage); @Override void setUsername(String username); @Override PrintStream getTraceStream(); @Override int hashCode(); @Override boolean equals(Object obj);  }