• Well-known object types can be either single call or singleton.

    已知物件型别可以单一呼叫单一物件。

    youdao

  • We could either implement each state as a Singleton, or create a factory of states which creates and manages the states.

    我们可以执行每个状态作为Singleton可以创建状态工厂用于生成和管理状态。

    youdao

  • Users of the class can then add and remove Attendee elements from the collection the Singleton instance holds, or replace the elements in the collection.

    然后该类用户可以Singleton实例保存集合中添加删除Attendee元素替换集合中的元素。

    youdao

  • The Singleton session bean lives for the duration of the container in which it is created but state does not survive a shut-down or a crash of the JVM.

    sessionbean生命周期与创建容器保持一致,但是状态会因为JVM的停止崩溃而丧失。

    youdao

  • This line is supposed to ensure that instance will only ever be null or refer to a fully constructed Singleton object.

    此行应该确保instance只为null引用一个构造完整Singleton对象

    youdao

  • Typical examples include a cached DAO, cache of JNDI references, or any sort of common factory or other component that needs to use the Singleton pattern.

    典型例子缓存DAO,JNDI引用缓存或者任何类型公共工厂或者其他需要使用Singleton模式组件

    youdao

  • Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.

    因为根据设计线程安全的,创建之后可以把它存在一个公共静态最终变量中,或者包装实例模式以供以后访问

    youdao

  • If you add database connections or use a JDBC driver that allows multithreading, the singleton can be easily adjusted to allow more connections.

    增加数据库连接或者改而使用支持多线程JDBC驱动器时例模式能够容易地适应这一变化。

    youdao

  • This has the added benefit of separating singleton code from the class code leaving the flexibility to use several instances of the class or using the class as a singleton.

    这样分离例结构代码有利于保持按单例模式使用不按单例模式使用类的灵活性

    youdao

  • Don't over - "design pattern" applications - Sometimes it's just easier to write a simple algorithm than it is to incorporate a singleton or facade pattern.

    不要过于注重程序的“设计模式”。有时候一个简单算法,要引入某种模式容易。

    youdao

  • These requests for a token are serviced by a singleton class named Dashboard, which manages the status of the endpoints of one or several groups.

    获取请求一个名为Dashboard单态进行处理,该类负责管理多个端点状态

    youdao

  • Configuring singleton aspects is as easy as configuring any other bean inside a Spring container, but what about aspects that have other lifecyles such as perthis, pertarget, or even percflow aspects?

    配置单体方面Spring容器中配置其他bean一样简单但是对于拥有其他生命周期的方面来说,该怎么办呢? 例如 perthis、pertarget甚至percflow 方面?

    youdao

  • You can have a SingletonFactory class with a globally accessible map of class names or class objects to singleton instances.

    创建一个SingletonFactory去全局映射(或者是类对象)单实例对象。

    youdao

  • This class provides a set of classes, or a set of singleton object instances, that include all of the root-level resources and providers (classes annotated with @Provider) in a JAX-RS application.

    此类提供一组单singleton对象实例一个 JAX-RS 应用程序内包括所有根级别资源提供程序(由 @Provider注释的类)。

    youdao

  • In this simple example, we set it as a VM-static singleton, but this is usually not necessary - your application configuration mechanism can determine if you need to use static memory or not.

    这个简单示例中,我们设置为VM静态Singleton通常不是必须的-应用配置机制可以决定是否需要使用静态存储。

    youdao

  • Spring has traditionally offered two scopes for beans: singleton and Prototype (or non-singleton).

    Spring之前bean提供了两种作用域原型(或者叫非例)。

    youdao

  • The basic thing comes in my mind is either Singleton or Factory Pattern.

    基本的事情出现脑海里单件工厂模式

    youdao

  • There is not significant difference between the attributions of different majors and singleton or not.

    文、理科独生独生大学生在不同归因维度上均无显著差异

    youdao

  • Or how do fridge microbes of an urban singleton stack up with those of a suburban family?

    城里冰箱单个的细菌怎样郊区家庭里的细菌堆积联系起来的?

    youdao

  • There are no significant differences on the aspects of gender, family, singleton or not and socioeconomic status in total scores.

    大学生心理资本总分性别、城乡、独生子女家庭社会经济地位等方面呈现明显差异

    youdao

  • Sometimes it's just easier to write a simple algorithm than it is to incorporate a singleton or facade pattern.

    有时候一个简单算法,要引入某种模式容易。

    youdao

  • Singleton: one instance of a class or one value accessible globally in an application.

    例:保证仅有实例,并提供一个访问全局访问点。

    youdao

  • Singleton: one instance of a class or one value accessible globally in an application.

    例:保证仅有实例,并提供一个访问全局访问点。

    youdao

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

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

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