Candy-Doc / candy-doc-maven-plugin

GNU General Public License v3.0
29 stars 5 forks source link

Explicit relation in shared kernel #165

Open ctacquet opened 2 years ago

ctacquet commented 2 years ago

Description

Is your feature request related to a problem? Please describe. Actually we can identify a package as a shared kernel but we don't know which bounded contexts are using concepts in shared kernel.

Describe the solution you'd like Add relations between 2 or more bounded contexts inside shared kernel annotation. The goal is to have something like that:

package-info.java


@SharedKernel(relations=["canonicalNameOfBoundedContext1", ...])
package foo.bar.shared_kernel;

import io.candydoc.ddd.annotations.SharedKernel;



**Describe alternatives you've considered**
No

**Additional context**
No
ctacquet commented 2 years ago

This issue was necessary because it is impossible to know which package use these objects without checking every relations of every objects.