Class ContextMappingModelHelper

java.lang.Object
org.contextmapper.dsl.refactoring.ContextMappingModelHelper

public class ContextMappingModelHelper extends Object
  • Constructor Details

    • ContextMappingModelHelper

      public ContextMappingModelHelper(ContextMap contextMap)
  • Method Details

    • findAnyRelationshipsBetweenTwoContexts

      public List<Relationship> findAnyRelationshipsBetweenTwoContexts(BoundedContext bc1, BoundedContext bc2)
      Finds all relationships between the two given contexts.
    • findAnyRelationshipsInvolvingContext

      public List<Relationship> findAnyRelationshipsInvolvingContext(BoundedContext bc)
      Finds all relationships that involve a specific Bounded Context.
    • replaceBCInAllRelationships

      public boolean replaceBCInAllRelationships(BoundedContext originalBC, BoundedContext replacementBC)
      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.