Skip to content

Commit

Permalink
Clarified Slices documentation
Browse files Browse the repository at this point in the history
The slices documentation does not mention a very important aspect, that is that, technically, Slices do not represent a given set of packages, although the example shows that.
  • Loading branch information
mipo256 authored Oct 19, 2024
1 parent f8f80de commit 191c0b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
* com.mycompany.myapp.user
* com.mycompany.myapp.authorization
* </code></pre>
* Please, note that a {@link Slice} does not necesserlly represent set of subpackages inside the given root package,
* although it is often the case. The example above is just a common use case, but {@link Slice slice} can, technically,
* represent any set of {@link JavaClass JavaClasses}.
* The top level packages under 'myapp' could be considered slices according to different domain aspects.<br>
* Thus there could be a slice 'Order' housing all the classes from the {@code order} package, a slice 'Customer'
* housing all the classes from the {@code customer} package and so on.
Expand Down

0 comments on commit 191c0b5

Please sign in to comment.