Minor readme fixes
This commit is contained in:
parent
7f29c2455f
commit
cd20e7a3f4
@ -101,7 +101,7 @@ public class ConfigureForUnixVisitor implements ZoomVisitor {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally here are the visitors in action.
|
Finally, here are the visitors in action.
|
||||||
|
|
||||||
```java
|
```java
|
||||||
var conUnix = new ConfigureForUnixVisitor();
|
var conUnix = new ConfigureForUnixVisitor();
|
||||||
|
@ -12,9 +12,8 @@ tags:
|
|||||||
Wrapper
|
Wrapper
|
||||||
|
|
||||||
## Intent
|
## Intent
|
||||||
Convert the interface of a class into another interface the clients
|
Convert the interface of a class into another interface the clients expect. Adapter lets classes work together that
|
||||||
expect. Adapter lets classes work together that couldn't otherwise because of
|
couldn't otherwise because of incompatible interfaces.
|
||||||
incompatible interfaces.
|
|
||||||
|
|
||||||
## Explanation
|
## Explanation
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ The user makes a single call to the aggregator service, and the aggregator then
|
|||||||
Real world example
|
Real world example
|
||||||
|
|
||||||
> Our web marketplace needs information about products and their current inventory. It makes a call to an aggregator
|
> Our web marketplace needs information about products and their current inventory. It makes a call to an aggregator
|
||||||
> service that in turn calls the product information microservice and product inventory microservice returning the
|
> service which in turn calls the product information microservice and product inventory microservice returning the
|
||||||
> combined information.
|
> combined information.
|
||||||
|
|
||||||
In plain words
|
In plain words
|
||||||
@ -41,7 +41,7 @@ public class Product {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Next we can introduct our `Aggregator` microservice. It contains clients `ProductInformationClient` and
|
Next we can introduce our `Aggregator` microservice. It contains clients `ProductInformationClient` and
|
||||||
`ProductInventoryClient` for calling respective microservices.
|
`ProductInventoryClient` for calling respective microservices.
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
Loading…
x
Reference in New Issue
Block a user