The format of unit creation is pretty standard - a method takes a UnitCreationContext, creates a unit using that context, modifies its modules, and then returns a UnitInfo describing the unit's availability. A lot of this functionality could be placed into a decorator to simplify this.
The format of unit creation is pretty standard - a method takes a
UnitCreationContext
, creates a unit using that context, modifies its modules, and then returns aUnitInfo
describing the unit's availability. A lot of this functionality could be placed into a decorator to simplify this.