Class DefaultRelatedItemsCollector

java.lang.Object
de.hybris.platform.servicelayer.model.collector.DefaultRelatedItemsCollector
All Implemented Interfaces:
RelatedItemsCollector

public class DefaultRelatedItemsCollector extends Object implements RelatedItemsCollector
Reference implementation of RelatedItemsCollector. It assume existence of ItemVisitorRegistry which uses for matching best or given ItemVisitor.

Note: Travers given theSource item against ItemVisitor and collects all catalog aware relatives for a given item. Relatives items are traversed using the same approach i.e. the method calls are recursive.

Note: Just to optimize you can pass RelatedItemsCollector.MAX_RECURSION_DEPTH to ctx as a parameter that express max recursion depth.

  • Constructor Details

    • DefaultRelatedItemsCollector

      public DefaultRelatedItemsCollector()
  • Method Details