com.capitalone.dashboard.collector.RestOperationsSupplier Maven / Gradle / Ivy
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();
}
}