The above code revisits the AppContext configuration class.
上面的代码重新访问了 AppContext配置类。
To do that, I create my own Configuration class, as shown below.
为此,我创建了自己的configuration类,如下所示。
The Configuration class is simply a base class — an abstract class.
configuration类只是一个基类——一个抽象类。
The AppContext class now represents configuration class just like the XML.
appcontext类现在就像XML一样表示配置类。
The context configuration location now points to the AppContext configuration class.
上下文配置位置现在指向AppContext配置类。
To read and write the data, I write the updated Configuration class shown in Listing 15.
为了读取及写入数据,我编写了如图15所示的更新过的configuration类。
It tells the Spring container that this is a configuration class having bean definitions and dependencies.
它告知spring容器这个类是一个拥有bean定义和依赖项的配置类。
Listing 12 shows an updated version of the configuration class that USES XML to load the configuration Settings.
清单12显示了使用XML来装载配置设置的configuration类的更新版。
Listing 8 shows how to extend the Configuration class to implement the Iterator interface, which is internal to PHP.
清单8显示了如何扩展configuration类来实现Iterator接口,对于php来说,该接口是内部接口。
This pattern is ideal for the configuration class because there should only be one configuration object for the application.
这种模式对于configuration类是十分理想的,因为应用程序应当仅有一个配置对象。
The configuration class can change how it stores and reads configuration items without worrying about its descendant classes.
configuration类可以更改存储和读取配置项的方法而不需要考虑它的子类。
Just as with activation and updates, you can set this behavior by making a call on the Configuration class, as shown in Listing 10.
与激活和更新一样,可以通过调用configuration类触发此行为。
Notice that the values from the Configuration fields are integers that are matched to specific constants from the Configuration class.
请注意,配置字段的值是一些匹配Configuration类里特定的常量的整数。
The Permissions configuration class functions as a container for static enum types that configure the permissions in a particular application using EAz.
Permissions配置类可用作在特定的应用程序中使用Eaz配置权限的静态Enum类型的容器。
Listing 6 shows a version of the Configuration class in which the PHP V4 coder has tried to build a rudimentary interface even without the interface keyword.
清单6显示了一个版本的configuration类,在该类中PHPV 4编码人员尝试了构建基本接口而根本不使用interface关键字。
Before diving into code in the next article in this series, let's take a look at the structures of the PermissionSet interface and the configuration class Permissions.
在深入研究本系列文章中下一篇文章中的代码之前,让我们先分析一下PermissionSet接口的结构和配置类Permissions。
I'd rather have the Configuration class continue to maintain the items array completely so that if I add other descendants, those classes won't need to know how to maintain the items array.
我希望继续由configuration类来完全维护项阵列,以便在添加其他子类后,那些类将不需要知道如何维护项阵列。
It shows the class diagram, the various configuration files and code snippets to show how the above design is put into practice.
它展示了类关系图、各种配置文件和显示如何将上述设计付诸实行的代码片段。
We need to edit the Server's configuration file to update the class path.
我们需要编辑服务器的配置文件以更新类路径。
In the next section I'll show you how this class is used to contain configuration information for each deployed MDB.
在下一节中,我将介绍如何用这个类包含每个部署的MDB的配置信息。
This file needs to contain the class name of the parser configuration.
该文件需要包含解析器配置的类名。
To demonstrate the new language features, I use a class called Configuration.
为了演示新语言特性,我使用了一个名为Configuration的类。
The ConfigMethod class: Configuration method implementations.
configmethod类:配置方法实现。
The next screen suggests a Web application identity and class path configuration for our environment.
下一个屏幕为我们的环境提供了Web应用程序标识和类路径配置建议。
Override properties: container class for properties, defined as configuration parameters.
Overrideproperties:定义为配置参数,用作属性的容器类。
The LoginContext class USES a configuration file to determine which LoginModule to use to authenticate the user.
logincontext类使用一个配置文件来确定使用哪个LoginModule对用户进行认证。
The ButterflyFactory class reads this configuration file format and ACTS as a factory for Butterfly objects (see Listing 9).
ButterflyFactory类读取该配置文件的格式,并充当Butterfly对象的工厂类(参见清单9)。
To run this unit test, create a run configuration for the unit test class as a test: : unit type.
要运行这个单元测试,应该为单元测试类创建一个Test:Unit类型的Run配置。
Annotation driven approaches work well if there is a single configuration being used per class which is pretty much what you need 90% + of the time.
如果各个类有一个简单的配置,能够满足超过90%的需要,那么标注驱动的方法是可行的。
See the sidebar Parent configuration and class loading for information on the need for a geronimo-application.xml deployment plan.
请参阅侧栏父配置和类装载,以了解geronimo - application . xml部署计划所需的信息。
应用推荐