Interface SupplyManager
-
- All Known Implementing Classes:
VariableListenerSupport
public interface SupplyManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S extends Supply>
Sdemand(Demand<S> demand)
-
-
-
Method Detail
-
demand
<S extends Supply> S demand(Demand<S> demand)
Returns theSupply
for aDemand
, preferably an existing one. If theSupply
doesn't exist yet (as part of the domain model or externalized), it creates and attaches it.- Type Parameters:
S
- Subclass ofSupply
- Parameters:
demand
- never null- Returns:
- never null
-
-