Class ContextMappingModelHelper
java.lang.Object
org.contextmapper.dsl.refactoring.ContextMappingModelHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all relationships between the two given contexts.Finds all relationships that involve a specific Bounded Context.void
moveExposedAggregatesToNewRelationshipsIfNeeded
(List<String> movedAggregates, BoundedContext newBoundedContext) Post-AR-Method: Fixes 'exposedAggregates' in context map relationships after some aggregates have been moved to a new bounded context.boolean
replaceBCInAllRelationships
(BoundedContext originalBC, BoundedContext replacementBC) Replaces the bounded context 'originalBC' in all relationships on the context map with the bounded context 'replacementBC'.
-
Constructor Details
-
ContextMappingModelHelper
-
-
Method Details
-
findAnyRelationshipsBetweenTwoContexts
public List<Relationship> findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1, BoundedContext bc2) Finds all relationships between the two given contexts. -
findAnyRelationshipsInvolvingContext
Finds all relationships that involve a specific Bounded Context. -
replaceBCInAllRelationships
Replaces the bounded context 'originalBC' in all relationships on the context map with the bounded context 'replacementBC'. Returns true if a replacement has been done, false otherwise. -
moveExposedAggregatesToNewRelationshipsIfNeeded
public void moveExposedAggregatesToNewRelationshipsIfNeeded(List<String> movedAggregates, BoundedContext newBoundedContext) Post-AR-Method: Fixes 'exposedAggregates' in context map relationships after some aggregates have been moved to a new bounded context.
-