This commit is contained in:
protopapa 2016-06-26 14:57:27 +02:00
parent 6677d1091d
commit 27bbbd8335
2 changed files with 4 additions and 0 deletions

View File

@ -27,12 +27,14 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;
import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
/** /**
* An adapter to communicate with information micro-service. * An adapter to communicate with information micro-service.
*/ */
@Component
public class ProductInformationClientImpl implements ProductInformationClient { public class ProductInformationClientImpl implements ProductInformationClient {
@Override @Override

View File

@ -27,12 +27,14 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;
import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
/** /**
* An adapter to communicate with inventory micro-service. * An adapter to communicate with inventory micro-service.
*/ */
@Component
public class ProductInventoryClientImpl implements ProductInventoryClient { public class ProductInventoryClientImpl implements ProductInventoryClient {
@Override @Override