Class DefaultSourcingStrategyService
java.lang.Object
de.hybris.platform.warehousing.sourcing.strategy.impl.DefaultSourcingStrategyService
- All Implemented Interfaces:
SourcingStrategyService,org.springframework.beans.factory.InitializingBean
public class DefaultSourcingStrategyService
extends Object
implements SourcingStrategyService, org.springframework.beans.factory.InitializingBean
Default implementation of the sourcing strategy service. We will get strategies for mappers that produce a match.
Also, if a matching mapper is terminal, then no other sourcing strategies will be added after the terminal one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the default sourcing strategies.getStrategies(SourcingContext context, Collection<SourcingStrategyMapper> mappers) Get the sourcing strategies according to a given sourcing context and sourcing mappers.voidsetDefaultStrategies(List<SourcingStrategy> defaultStrategies)
-
Constructor Details
-
DefaultSourcingStrategyService
public DefaultSourcingStrategyService()
-
-
Method Details
-
getStrategies
public List<SourcingStrategy> getStrategies(SourcingContext context, Collection<SourcingStrategyMapper> mappers) Description copied from interface:SourcingStrategyServiceGet the sourcing strategies according to a given sourcing context and sourcing mappers.- Specified by:
getStrategiesin interfaceSourcingStrategyService- Parameters:
context- - the sourcing contextmappers- - collection of sourcing strategy mappers- Returns:
- ordered list of sourcing strategies; never null
-
getDefaultStrategies
Description copied from interface:SourcingStrategyServiceGet the default sourcing strategies.- Specified by:
getDefaultStrategiesin interfaceSourcingStrategyService- Returns:
- ordered list of sourcing strategies; never null
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setDefaultStrategies
-