Class DefaultSourcingContextFactory
- java.lang.Object
-
- de.hybris.platform.warehousing.sourcing.context.impl.DefaultSourcingContextFactory
-
- All Implemented Interfaces:
SourcingContextFactory,org.springframework.beans.factory.InitializingBean
public class DefaultSourcingContextFactory extends java.lang.Object implements SourcingContextFactory, org.springframework.beans.factory.InitializingBean
Factory used for creating aSourcingContext.
-
-
Constructor Summary
Constructors Constructor Description DefaultSourcingContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.Collection<SourcingContext>create(java.util.Collection<OrderEntryGroup> groups, java.util.Collection<WarehouseModel> locations)Create a new sourcing context.protected SourcingLocationcreateSourcingLocation(SourcingContext context, WarehouseModel location)Create a new sourcing location and populate it.protected java.util.Set<SourcingLocationPopulator>getSourcingLocationPopulators()voidsetSourcingLocationPopulators(java.util.Set<SourcingLocationPopulator> populators)
-
-
-
Method Detail
-
create
public java.util.Collection<SourcingContext> create(java.util.Collection<OrderEntryGroup> groups, java.util.Collection<WarehouseModel> locations) throws java.lang.IllegalArgumentException
Description copied from interface:SourcingContextFactoryCreate a new sourcing context.- Specified by:
createin interfaceSourcingContextFactory- Parameters:
groups- - the order entries grouped by one or more OrderEntryMatcher strategieslocations- - the sourcing locations to be populated; cannot be null or empty- Returns:
- collection of sourcing context; never null
- Throws:
java.lang.IllegalArgumentException
-
createSourcingLocation
protected SourcingLocation createSourcingLocation(SourcingContext context, WarehouseModel location)
Create a new sourcing location and populate it.- Parameters:
context- - the sourcing contextlocation- - the warehouse model- Returns:
- the sourcing location; never null
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getSourcingLocationPopulators
protected java.util.Set<SourcingLocationPopulator> getSourcingLocationPopulators()
-
setSourcingLocationPopulators
public void setSourcingLocationPopulators(java.util.Set<SourcingLocationPopulator> populators)
-
-