use of org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CFTargetCache in project sts4 by spring-projects.
the class ManifestYamlActualCfClientTest method setup.
@Before
public void setup() throws Exception {
cfJson = new CfJson();
CfTargetsInfo info = getTargetsInfoFromEnv();
CfTargetsInfoProvder provider = new CfTargetsInfoProvder(info);
CfClientConfig cfClientConfig = CfClientConfig.createDefault(provider);
CloudFoundryClientFactory clientFactory = DefaultCloudFoundryClientFactoryV2.INSTANCE;
cfTargetCache = new CFTargetCache(cfClientConfig, clientFactory, new ClientTimeouts());
}
use of org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget.CFTargetCache in project sts4 by spring-projects.
the class ManifestYamlLanguageServer method getCfTargetCache.
private CFTargetCache getCfTargetCache() {
if (cfTargetCache == null) {
// Init CF client params provider if it's initilized
if (cfClientConfig.getClientParamsProvider() == null) {
cfClientConfig.setClientParamsProvider(defaultClientParamsProvider);
}
CloudFoundryClientFactory clientFactory = cfClientFactory;
cfTargetCache = new CFTargetCache(cfClientConfig, clientFactory, new ClientTimeouts());
}
return cfTargetCache;
}
Aggregations