DependencyName

annotation class DependencyName(val value: String)

The name of the dependency a parameter takes. On a parameter of a command function or an after hook that takes a domain service, or of a processor's constructor, the module's binding index asks the host's dependencies for the service of the parameter's type named value, so two parameters of one type can take two services. Without it, the host gives the only service of that type, or its primary one.

The command parameter and the decide scope take none.

Parameters

value

the dependency's name, not blank.

Properties

Link copied to clipboard