com.capitalone.dashboard.collector.RestOperationsSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.collector;
import com.capitalone.dashboard.util.Supplier;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
/**
* Supplier that returns an instance of RestOperations
*/
@Component
public class RestOperationsSupplier implements Supplier {
@Override
public RestOperations get() {
return new RestTemplate();
}
}