public class SupplierLoaderImpl extends Object implements SupplierLoader
SupplierLoader
implementation.Constructor and Description |
---|
SupplierLoaderImpl(Node node,
NodeContext nodeContext)
Instantiate.
|
Modifier and Type | Method and Description |
---|---|
<S extends SupplierSource> |
fillSupplyOrders(Class<S> supplierSourceClass,
PropertyList propertyList,
SupplyOrder... supplyOrders)
Fills the
SupplyOrder instances with a
SuppliedManagedObject . |
<S extends SupplierSource> |
loadSpecification(Class<S> supplierSourceClass)
|
<S extends SupplierSource> |
loadSupplierType(Class<S> supplierSourceClass,
PropertyList propertyList)
Loads and returns
SupplierType for the SupplierSource . |
public SupplierLoaderImpl(Node node, NodeContext nodeContext)
node
- Node
requiring the Supplier
.nodeContext
- NodeContext
.public <S extends SupplierSource> PropertyList loadSpecification(Class<S> supplierSourceClass)
SupplierLoader
loadSpecification
in interface SupplierLoader
S
- SupplierSource
type.supplierSourceClass
- SupplierSource
class.PropertyList
of the SupplierSourceProperty
instances of the SupplierSourceSpecification
or
null
if issue, which is reported to the
CompilerIssues
.public <S extends SupplierSource> SupplierType loadSupplierType(Class<S> supplierSourceClass, PropertyList propertyList)
SupplierLoader
SupplierType
for the SupplierSource
.loadSupplierType
in interface SupplierLoader
S
- SupplierSource
type.supplierSourceClass
- Class of the SupplierSource
.propertyList
- PropertyList
containing the properties to source the
SupplierType
.SupplierType
or null
if issues, which are
reported to the CompilerIssues
.public <S extends SupplierSource> void fillSupplyOrders(Class<S> supplierSourceClass, PropertyList propertyList, SupplyOrder... supplyOrders)
SupplierLoader
SupplyOrder
instances with a
SuppliedManagedObject
.fillSupplyOrders
in interface SupplierLoader
S
- SupplierSource
type.supplierSourceClass
- Class of the SupplierSource
.propertyList
- PropertyList
containing the properties to configure
the SupplierSource
to fill the SupplyOrder
instances.supplyOrders
- SupplyOrder
instances to be filled.Copyright © 2005–2016. All rights reserved.