@CompileStatic class DefaultCargoCreatorService extends Object implements CargoCreatorService
Default implementation of CargoCreatorService.
For determining maximum allowed weight per container, it uses provided MaxAllowedWeightPerContainerPolicy service instance.Type | Name and description |
---|---|
MaxAllowedWeightPerContainerPolicy |
maxAllowedWeightPerContainerPolicy |
Constructor and description |
---|
DefaultCargoCreatorService(MaxAllowedWeightPerContainerPolicy maxAllowedWeightPerContainerPolicy) Constructor. |
Type Params | Return Type | Name and description |
---|---|---|
|
Cargo |
from(ContainerDimensionType containerDimensionType, Commodity commodity) |
Constructor.
Provided MaxAllowedWeightPerContainerPolicy instance must not benull
.
Groovy Documentation