1·Figure 4 shows a class diagram for the decorator pattern.
图4显示了装饰器模式的类图。
2·Enter the decorator pattern, which allows you to add this functionality onto the AutomobileModel in a nice, clean class.
进入装饰器模式,该模式允许您通过一个优秀整洁的类将此功能添加到AutomobileModel。
3·InfoQ: What distinguishes a decorator from an interceptor?
InfoQ:装饰器和拦截器的区别是什么?
4·Listing 7. The classinitializer decorator.
清单7 . classinitializer装饰器。
5·A decorator is a function that adds metadata to a class, its members (properties, methods) and function arguments.
装饰器是一个函数,它将元数据添加到类、类成员(属性、方法)和函数参数。