jqa-core-framework icon indicating copy to clipboard operation
jqa-core-framework copied to clipboard

Enabling the provision of local concepts by remote concepts

Open morpfl opened this issue 1 year ago • 0 comments

Feature Description

Currently, concepts defined locally can provide remote concepts defined in plugins. Is it possible to extend the concept provision mechanism in the way that also remote concepts can provide local concepts? Considering the jQA-jMolecules-Plugin, the concept jmolecules-ddd:BoundedContextPackage is required for almost all its constraints as it creates nodes for Bounded-Contexts according to packages annotated with @BoundedContext. If, in a local project, the identification mechanism for Bounded-Contexts works differently (e.g. via Maven-Properties), the local identification concept has to provide jmolecules-ddd:BoundedContextPackage to be able to use further plugin constraints. Even if it is not based on packages.

A possible solution might look somehow like that:

<group id="my-local-group">
  <includeConcept refId="jmolecules-ddd:BoundedContextPackage">
    <providesConcept refId="my-local-general-concept"/>
  </includeConcept> 
</group>

<concept id="my-local-general-concept">
 ...
</concept>  

morpfl avatar Mar 08 '24 14:03 morpfl