With AttributeDesignator, you specify an attribute by defining its name and type.
利用AttributeDesignator,可以通过定义属性名和类型来指定一个属性。
You can also define an extends attribute to specify a relative path to the base requirement in order to create an extension.
您还可以一个 扩展 属性,从而为创建扩展确定一个基础需求的相对路径。
Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.
清单4显示了使用方法而非属性来指定适当类的单例。
应用推荐