Interface SourcingStrategyMapper
- All Known Implementing Classes:
AbstractSourcingStrategyMapper,PickupSourcingStrategyMapper
public interface SourcingStrategyMapper
A mapper is used to map a sourcing context to a sourcing strategy.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the sourcing strategy associate with this matcher.isMatch(SourcingContext context) Determines if this mapper produces a match for the given sourcing context.
-
Method Details
-
getStrategy
SourcingStrategy getStrategy()Get the sourcing strategy associate with this matcher.- Returns:
- the sourcing strategy or null if none is set
-
isMatch
Determines if this mapper produces a match for the given sourcing context.- Parameters:
context- - the sourcing context- Returns:
- true if it is a match; false otherwise
-