mixinafIoc::Constraints

afIoc::Constraints

@Js

Use to add ordering constraints to service configurations.

Constraints are keys of other contributions that this contribution must appear before or after.

config["Breakfast"] = eggs
config["Dinner"]    = pie
...
config.set("Lunch", ham).after("breakfast").before("dinner")

Constraints become very powerful when used across multiple modules and pods.

after

Source

abstract This after(Obj key, Bool optional := false)

Specify a key your contribution should appear after.

This may be called multiple times to add multiple constraints.

before

Source

abstract This before(Obj key, Bool optional := false)

Specify a key your contribution should appear before.

This may be called multiple times to add multiple constraints.