Class PartBasedComputingUtils


  • public class PartBasedComputingUtils
    extends Object
    Basic set of standard tools for building up rebuild scope and context collectors based on DD parts principle.
    • Constructor Detail

      • PartBasedComputingUtils

        public PartBasedComputingUtils()
    • Method Detail

      • createSelfRebuildScopeCollector

        public static IDerivedDataPartBasedRebuildScopeCollector createSelfRebuildScopeCollector​(org.eclipse.emf.ecore.EClass eClass,
                                                                                                 String[] parts)
        Creates new rebuild scope collector for a given eClass and set of parts, which collects scope consisting of the given object and specified parts.
        Parameters:
        eClass - Target EClass for matching.
        parts - DD parts that will be re-computed in case of full rebuild. Could be null or empty.
        Returns:
        The configured rebuild scope collector.
      • rebuildSelf

        public static ICaseSpecificContextCollector rebuildSelf​(String... segmentIds)
        Marks context of the processed object as full rebuild target.
        Parameters:
        segmentIds - The set of target DD segments for rebuilding, cannot be null
        Returns:
        The configured rebuild context collector, never null