Figure 14: Object model prior to Flyweight pattern.
图14:在Flyweight模式之前的对象模型。
Figure 15: Object model after applying the Flyweight pattern.
图15:使用Flyweight后的对象模型。
But, fundamentally, reuse via design patterns is fine-grained: one solution (the Flyweight pattern, for example) is orthogonal to another (the Memento pattern).
但是,从根本上来说通过模式实现重用属于细粒度操作:一个解决方案是(比如享元(Flyweight)模式)与另一个解决方案(备忘录模式)正交。
But... applying the Flyweight [GoF] pattern raises a new challenge for our designer.
但是……应用flyweight [g oF]模式给设计者带来了新的挑战。
For example, according to the pattern catalog, the State pattern is often related to Flyweight and Singleton [GoF].
例如,通过模式目录,State模式经常涉及到Flyweight和Singleton [g oF]。
For example, according to the pattern catalog, the State pattern is often related to Flyweight and Singleton [GoF].
例如,通过模式目录,State模式经常涉及到Flyweight和Singleton [g oF]。
应用推荐