Skip to content

class FromKeyedServices

cangjie
public class FromKeyedServices

功能:标记构造函数参数以从带键服务中解析依赖。

init()

cangjie
public const init()

功能:创建一个继承父级服务键的参数注解。

init(String)

cangjie
public const init(key: String)

功能:创建一个显式指定服务键的参数注解。

参数:

  • key: String - 要解析的服务键。

prop mode

cangjie
public prop mode: ServiceKeyLookupMode

功能:返回当前注解使用的服务键查找模式。

类型:ServiceKeyLookupMode