public class DefaultSourcingContextFactory extends Object implements SourcingContextFactory
SourcingContext.| Constructor and Description |
|---|
DefaultSourcingContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Collection<SourcingContext> |
create(Collection<OrderEntryGroup> groups,
Collection<WarehouseModel> locations)
Create a new sourcing context.
|
protected SourcingLocation |
createSourcingLocation(SourcingContext context,
WarehouseModel location)
Create a new sourcing location and populate it.
|
protected Set<SourcingLocationPopulator> |
getSourcingLocationPopulators() |
void |
setSourcingLocationPopulators(Set<SourcingLocationPopulator> populators) |
public Collection<SourcingContext> create(Collection<OrderEntryGroup> groups, Collection<WarehouseModel> locations) throws IllegalArgumentException
SourcingContextFactorycreate in interface SourcingContextFactorygroups - - the order entries grouped by one or more OrderEntryMatcher strategieslocations - - the sourcing locations to be populated; cannot be null or emptyIllegalArgumentExceptionprotected SourcingLocation createSourcingLocation(SourcingContext context, WarehouseModel location)
context - - the sourcing contextlocation - - the warehouse modelprotected Set<SourcingLocationPopulator> getSourcingLocationPopulators()
public void setSourcingLocationPopulators(Set<SourcingLocationPopulator> populators)
Copyright © 2017 SAP SE. All Rights Reserved.