We applied the strategy pattern for the selection of the appropriate rule engine.
我们应用策略模式来进行合适规则引擎的选择。
The first pattern is the strategy pattern, demonstrated by the MessageHandler interface.
第一种模式是strategy 模式,MessageHandler 接口采用的就是这种模式。
The strategy pattern is usually implemented in a single address space using a single programming language.
该策略模式通常使用单个编程语言在单个地址空间内实现。
The Strategy pattern can be used to implement operations' variability, and the Decorator pattern can be used to implement parameters' variability.
Strategy模式可用于实现操作的可变性,Decorator 模式可用于实现参数的可变性。
So here is an example: you have just added the Strategy pattern, and you have more flexibility. But the tradeoff is that you now have more objects and an additional level of indirection.
这就有一个例子,当你只是添加了策略模式时,你在得到了更多的灵活性的同时你也会拥有更多的对象和一个额外的间接层次。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable.
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable.
策略模式定义了一族算法,并将每一个都进行封装使他们变得通用。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。
应用推荐