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 Object
implements SourcingContextFactory, org.springframework.beans.factory.InitializingBean
Factory used for creating a
SourcingContext.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Collection<OrderEntryGroup> groups, Collection<WarehouseModel> locations) Create a new sourcing context.protected SourcingLocationcreateSourcingLocation(SourcingContext context, WarehouseModel location) Create a new sourcing location and populate it.protected Set<SourcingLocationPopulator>voidsetSourcingLocationPopulators(Set<SourcingLocationPopulator> populators)
-
Constructor Details
-
DefaultSourcingContextFactory
public DefaultSourcingContextFactory()
-
-
Method Details
-
create
public Collection<SourcingContext> create(Collection<OrderEntryGroup> groups, Collection<WarehouseModel> locations) throws 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:
IllegalArgumentException
-
createSourcingLocation
Create a new sourcing location and populate it.- Parameters:
context- - the sourcing contextlocation- - the warehouse model- Returns:
- the sourcing location; never null
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getSourcingLocationPopulators
-
setSourcingLocationPopulators
-