GH-21 - A bit more Javadoc in the example module.
This commit is contained in:
@@ -18,6 +18,9 @@ package example.inventory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Some inventory-internal application component. As it is located in the very same package, it can be protected from
|
||||
* access by other modules by using the default visibility instead of making it public.
|
||||
*
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
|
||||
@@ -24,6 +24,8 @@ import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.event.TransactionalEventListener;
|
||||
|
||||
/**
|
||||
* A Spring {@link Service} exposed by the inventory module.
|
||||
*
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Slf4j
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* The logical application module inventory implemented as a single-package module. Allows to hide application
|
||||
* components inside the module by using package scoped types.
|
||||
*
|
||||
* @see example.inventory.InventoryInternal
|
||||
*/
|
||||
package example.inventory;
|
||||
@@ -18,6 +18,8 @@ package example.order.internal;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Some order-internal application component.
|
||||
*
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* The logical application module order implemented as a multi-package module. Internal components located in nested
|
||||
* packages are prevented from being accessed by the {@link org.springframework.modulith.model.ApplicationModules} type.
|
||||
*
|
||||
* @see example.ModularityTests
|
||||
*/
|
||||
package example.order;
|
||||
Reference in New Issue
Block a user