• The singleton is a useful design pattern for allowing only one instance of your class, but common mistakes can inadvertently allow more than one instance to be created.

    例模式非常有用设计模式,它允许对外提供实例但是犯的错误在于不止一个实例创建。

    youdao

  • This pattern lets us hide a complicated interface by substituting a class or component with a simplified interface.

    组件一个简化界面替代模式可以使我们复杂的界面隐藏起来。

    youdao

  • The simplest approach is to encapsulate the creation of the proxy class within the Factory pattern.

    简单方法就是工厂模式中把代理建立封装起来。

    youdao

  • Figure 6 shows the class diagram from the WS response template pattern.

    6显示了WS响应模板模式关系

    youdao

  • Figure 1 shows a class diagram of the adapter pattern.

    1显示适配器模式

    youdao

  • Figure 3 shows a class diagram of the iterator pattern.

    3显示迭代器模式

    youdao

  • The simplest character class is a single character, which is just included in the pattern as a literal.

    简单的字符就是单个字符,模式只是一个字。

    youdao

  • This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.

    一个可用创建实例需要每个特定的重写单例模式代码可重用的类。

    youdao

  • Figure 5 shows a class diagram of the delegate pattern.

    5显示委托模式

    youdao

  • Figure 4 shows a class diagram for the decorator pattern.

    4显示装饰器模式

    youdao

  • One of the approaches for overcoming drawbacks of the previous pattern is to treat enterprise data access as a first class business services.

    克服模式缺点一种方法就是企业数据存取当作一级业务服务。

    youdao

  • Create a new Unified Modeling Language (UML) class diagram, then open the Pattern Explorer that Figure 1 above shows.

    创建一个新的统一建模语言(Create a new Unified Modeling Language,uml)然后打开上图1显示模式浏览器

    youdao

  • This pattern is ideal for the configuration class because there should only be one configuration object for the application.

    这种模式对于configuration十分理想的,因为应用程序应当仅有一个配置对象

    youdao

  • This serves as a useful base case, similar to a base Visitor class in the classic Visitor pattern.

    作为一种有用的基本用例类似经典访问者模式中的基本Visitor

    youdao

  • The file will include the specific servlet class definitions and their corresponding URL pattern.

    这个文件包括特定的servlet定义以及它们对应URL模式

    youdao

  • As a general rule, add a PatternParameterDelegate statement to the constructor of each parameter class of the composed pattern.

    复合模式每个参数的构造函数增加PatternParameterDelegate声明已成为一种普遍规律

    youdao

  • Bug patterns often stem from confusing features of the language or the class library; this bug pattern stems from the somewhat counterintuitive fact that RuntimeException extends Exception.

    bug模式通常源自语言模糊功能;出现bug模式是因为RuntimeException扩展了Exception,稍微有点违反常理

    youdao

  • In keeping with the Reactor pattern, a Selector class is a multiplexor of Channels.

    反应器模式一致SelectorChannel多路复用器。

    youdao

  • You can use a Factory pattern to create an instance of an implementation class that implements your interface.

    可以使用Factory模式创建实现接口实现实例

    youdao

  • There is no need to further specify the Marshaller interface because we will get prompted to specify the location of this class by the wizard when the pattern is applied.

    没有必要进一步指定Marshaller接口因为应用模式向导提示我们指定这个位置

    youdao

  • Concrete classes provide the appropriate implementation for their respective base class. The Factory Method Pattern consists of the following classes.

    concrete它们各自提供恰当实现

    youdao

  • You can also represent the pattern solution visually, in terms of both structure and behavior. Figure 5 is a UML class diagram showing the participants in the Observer pattern.

    可以按照结构行为方面视觉上来展示模式图5一个UML图标表示Observer 模式参与者

    youdao

  • Consider the visitor pattern in which a visitor class is defined with a for method for each class in a composite hierarchy.

    请考虑访问者模式其中for方法复合层次结构中的每个定义了访问者类。

    youdao

  • This is demonstrated using the ExceptionHandler class, which again adopts a singleton design pattern.

    使用exceptionhandler可以展示一点,该类也采用singleton设计模式

    youdao

  • Since the pattern requires a class word and "ADDRESS" is not a class word defined in the glossary model, a warning with the following description will be displayed in the Problems view.

    因为这个模式要求有单词,但是“ADDRESS不是术语模型定义类单词,所以problems视图显示一个警告,其描述如下

    youdao

  • This expression is then retained by the Pattern class before it is passed on to the Matcher class to check for matches in the context of a character sequence.

    Pattern保存要使用表达式然后传递Matcher 类以便字符序列上下文中检查匹配情况

    youdao

  • Line 33 - Uses the 'fnmatch' method of 'file' class to check if the file found matches the pattern given.

    第33-使用File中的“fnmatch方法检查发现文件是否符合给定模式

    youdao

  • Line 24 - Uses the 'fnmatch' method of 'file' class to check if the file found matches the pattern given.

    第24-使用File中的“fnmatch方法检查发现文件是否符合给定模式

    youdao

  • Listing 6 creates a Field using the Factory pattern in the Layout class.

    清单6工厂模式Layout类中创建Field

    youdao

  • Since the pattern requires a class word and “CIVILIAN EMPLOYEE" doesn't contain a class word, a warning with the following description is displayed in the Problems view

    因为这个模式要求有单词,但是 “CIVILIANEMPLOYEE包含类单词,所以Problems视图显示一个警告描述如下

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定