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 java.lang.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 Constructor Description DefaultSourcingStrategyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.List<SourcingStrategy>getDefaultStrategies()Get the default sourcing strategies.java.util.List<SourcingStrategy>getStrategies(SourcingContext context, java.util.Collection<SourcingStrategyMapper> mappers)Get the sourcing strategies according to a given sourcing context and sourcing mappers.voidsetDefaultStrategies(java.util.List<SourcingStrategy> defaultStrategies)
-
-
-
Method Detail
-
getStrategies
public java.util.List<SourcingStrategy> getStrategies(SourcingContext context, java.util.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
public java.util.List<SourcingStrategy> getDefaultStrategies()
Description copied from interface:SourcingStrategyServiceGet the default sourcing strategies.- Specified by:
getDefaultStrategiesin interfaceSourcingStrategyService- Returns:
- ordered list of sourcing strategies; never null
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
setDefaultStrategies
public void setDefaultStrategies(java.util.List<SourcingStrategy> defaultStrategies)
-
-