Skip to content

Commit e972875

Browse files
committed
GH-21 - A bit more Javadoc in the example module.
1 parent f53ff16 commit e972875

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

spring-modulith-example/src/main/java/example/inventory/InventoryInternal.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
import org.springframework.stereotype.Component;
1919

2020
/**
21+
* Some inventory-internal application component. As it is located in the very same package, it can be protected from
22+
* access by other modules by using the default visibility instead of making it public.
23+
*
2124
* @author Oliver Drotbohm
2225
*/
2326
@Component

spring-modulith-example/src/main/java/example/inventory/InventoryManagement.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import org.springframework.transaction.event.TransactionalEventListener;
2525

2626
/**
27+
* A Spring {@link Service} exposed by the inventory module.
28+
*
2729
* @author Oliver Drotbohm
2830
*/
2931
@Slf4j
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* The logical application module inventory implemented as a single-package module. Allows to hide application
3+
* components inside the module by using package scoped types.
4+
*
5+
* @see example.inventory.InventoryInternal
6+
*/
7+
package example.inventory;

spring-modulith-example/src/main/java/example/order/internal/OrderInternal.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import org.springframework.stereotype.Component;
1919

2020
/**
21+
* Some order-internal application component.
22+
*
2123
* @author Oliver Drotbohm
2224
*/
2325
@Component
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* The logical application module order implemented as a multi-package module. Internal components located in nested
3+
* packages are prevented from being accessed by the {@link org.springframework.modulith.model.ApplicationModules} type.
4+
*
5+
* @see example.ModularityTests
6+
*/
7+
package example.order;

0 commit comments

Comments
 (0)