这种模式对于configuration类是十分理想的,因为应用程序应当仅有一个配置对象。
This pattern is ideal for the configuration class because there should only be one configuration object for the application.
在这两种情况下,您都需要声明依赖项(例如使用Spring配置文件),并向依赖对象类添加对应的构造函数或mutator方法。
In both cases you need to declare the dependency (e.g. using the Spring configuration file) and add a corresponding constructor or mutator method to the dependent object class.
这个方法传递一个Configuration类的对象来标识新的设备配置。
This method is passed a configuration object that specifies the new device configuration.
UserTransaction属性将工厂类配置为从WebSphere容器获取UserTransaction对象实例的实例。
The jta.UserTransaction property configures the factory class to obtain an instance of a UserTransaction object instance from the WebSphere container.
ButterflyFactory类读取该配置文件的格式,并充当Butterfly对象的工厂类(参见清单9)。
The ButterflyFactory class reads this configuration file format and ACTS as a factory for Butterfly objects (see Listing 9).
每个类定义上的注释(用粗体显示)和大部分字段定义提供了配置信息,供JAXB用于控制对象与XML的转换。
The annotations (shown in bold) on each class definition and most of the field definitions supply configuration information that JAXB USES to control the conversion of objects to and from XML.
如果你的类的依赖关系发生改变,这并不影响对象的创建,只需要配置容器就可以。
And if your dependencies change as your classes evolve, that doesn't impact the creation of those objects, just the configuration of the container.
保存添加了对象类的组实体类型配置;实体类型配置的对象类显示在图29中。
Save the Group entity type configuration with the added object classes; the configured object classes for the entity type are shown in figure 29.
这个Configuration类的对象代表着当前所有的配置信息,不仅仅那些改变的配置信息。
The configuration object represents all of the current configurations, not just the ones that have changed.
插件的使用并不是直接初始化插件类的一个对象,而是使用该组件的“plugins”配置选项将插件附加到这个组件上。
Rather than directly instantiating an object of a plug-in class, plug-ins are attached to a component using the "plugins" configuration option for that component.
您将注意到,尽管类定义中缺少显式定义的setter方法,XJConf仍然能够通过__set方法配置对象的特性。
You'll notice that despite the lack of explicitly-defined setter methods in the class definition, XJConf was still able to configure the object's properties through the __set method.
图5和清单22 中显示的TypeGetter类负责从Configuration对象中获取特定类型的配置字段
The TypeGetter class, illustrated in Listing 5 and Figure 22, is responsible for retrieving a configuration field of a particular type from a Configuration object
基于面向对象技术,将这些对象的属性、数据、过程和功能封装在相应的类中,用这些类构造了BOM系统的模型,并给出了一种BOM配置管理的算法。
The properties , data, functions of the objects are encapsulated into the corresponding classes, which construct the model of BOM system and provide an arithmetic about BOM configuration management.
com类模板创建一个新类,然后配置您的项目以生成作为COM对象的类和操作性层并在操作系统注册。
The COM class template creates a new class, and then configures your project to generate the class and interoperability layer as a COM object and register it with the operating system.
com类模板创建一个新类,然后配置您的项目以生成作为COM对象的类和操作性层并在操作系统注册。
The COM class template creates a new class, and then configures your project to generate the class and interoperability layer as a COM object and register it with the operating system.
应用推荐