Skip to content

Commit 2d43dae

Browse files
committed
doc update + small typo fix
1 parent 37677ab commit 2d43dae

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ The main goal of this project is to explore `services` based on `Java 9`
77

88
_Reference_: [Java 9 Modularity](https://www.amazon.com/Java-Modularity-Developing-Maintainable-Applications/dp/1491954167)
99

10+
## project structure
11+
* **bot** - exploring `uses` and default service implementation
12+
* **fenchman**, **spaniard** - exploring `provides X with Y`
13+
* **client** - mock of `GUI`
1014
## project description
11-
Services allow a module to provide implementations to other modules
12-
without exporting the concrete implementation class. The module system
13-
has special privileges to reach into the provider module to instantiate
14-
the nonexported implementation class on behalf of the consumer. This
15-
means consumers of the service can use instances of this implementation
16-
class, without having access to it directly. Also, a service consumer
17-
doesn’t know which module provided an implementation, because the only
18-
shared type between provider and consumer is the service type (most
19-
often an interface).
15+
* Services allow modules to provide implementations without explicitly
16+
exporting them (the module system has special privileges to reach into
17+
the provider module to instantiate the nonexported implementation class
18+
on behalf of the consumer).
19+
* Consumers of the service can use instances of this implementation
20+
class without having access to it directly.
21+
* The only shared type between provider and consumer is the service type
22+
(most often an interface).
2023

2124
## project content

spaniard/src/main/java/spaniard/Spaniard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ private Spaniard() {
1111

1212
@Override
1313
public void greeting() {
14-
System.out.println("Buenos días!");
14+
System.out.println("Buenos días.");
1515
}
1616

1717
@Override

0 commit comments

Comments
 (0)