特性文件初始化与JNDI查询
就我们的用途而言,我们将创建两个特性文件。
For our purposes, we will create a couple of properties files.
清单4显示了用两种不同方法装入特性文件的代码。
Listing 4 shows the code for loading the properties file two different ways.
以下是可以产生不同JNDI连接的特性文件项示例。
The following are examples of property file entries that will result in different JNDI connections.
快速显示实际运行时环境中的特性文件是很好的“健全”检查。
A quick display of a properties file in the actual runtime environment is a good sanity check.
确保源语言中定义的所有键在目标语言的特性文件中都存在,反之亦然。
Ensures that all the keys defined in the source language exist in the target language property file, and vice-versa.
可以考虑向特性文件添加注释,那么翻译人员就可以知道给定消息的环境。
Consider adding notes to the property files so translators will know the context of a given message.
该元数据可以采取任何形式:特性文件、XML文件甚至特有的二进制格式。
This metadata may take any form: properties files, XML files, or even a proprietary binary format.
从资源束装入特性是一种与体系结构和平台无关的装入特性文件的方式。
Loading properties from a resource bundle is an architecture - and platform-independent way of loading a properties file.
确保源语言中定义的所有键在目标语言的特性文件中都存在,反之亦然。
Assures that all the keys defined in the source language exist in the target language property file and visa-versa.
为避免与环境设置的混淆,我始终用从特性文件读出的jndi值来设置特性实例。
To avoid confusion with conflicting environment Settings, I always set a properties instance with the JNDI values I've read out of my properties file.
要在翻译可用之前在开发中解决这个问题,您可以修改特性文件的文本以使其长度加倍。
To address this in development before a translation is available, you can modify the text of your properties files to double their lengths.
当把html浏览器中的语言设置成英语时,该文件连同两个特性文件将一起显示
This along with the two properties files give us the following when our language is set to English in our html browser
这个方法将在CLASSPATH上查找特性文件,因此有必要将包含该文件的目录放到类路径中。
This method will find the properties file on the classpath, so it is necessary to put the directory with this file in the classpath.
本文提出了通过即时建立IC C色彩特性文件,对自然光下拍摄的数字图像进行色彩校正的方法。
We advanced a method to correcting the color of digital images were captured under the daylight by establishing ICC Profile immediately.
RBManager不包括并列特性文件视图(至今?),但它确实有助于管理翻译中通常涉及的许多资源文件。
RBManager doesn't include a size-by-size property files view (yet?), but it definitely helps manage the many resource files typically involved in a translation.
至于jndi上下文,通常的做法是将参数字符串(清单2中第二和第三行)存储在特性文件中然后在需要时读取。
As for the JNDI context, it is common practice to store the parameter strings (Lines 2 and 3 of Listing 2) in a properties file and read them in as needed.
建议您将应用程序所有的运行时配置参数都放在一个应用程序特性文件中并将JNDI参数包含在该文件中。
I recommend that you place all your application's run-time configuration parameters in one application properties file and include the JNDI parameters there.
选择SourceLanguage列表中的一个特性文件将自动选中Target Language列表中的对应文件,并显示其按键排序的内容。
Selecting a properties file found in the list of Source Language list will automatically select the corresponding file in the Target Language list, and display their contents sorted by key.
还有选项是选择不同的固件文件,设置各种硬件特性,等等。
Options also exist to select different firmware files, set various hardware features, and so on.
EMF提供了一个特性来支持这种格式的文件。
这个文件必须放置在每个包含使用JSP 2.1特性的标记文件的目录中。
This file must be placed in each directory that contains tag files using JSP 2.1 features.
删除\60 \ \文件中的过期的特性信息。
图3显示了使用细粒度更新特性进行文件更新和同步的流程。
Figure 3 shows the flow of updating and synchronizing the file using the fine-grained update feature.
可以利用文件能力特性将能力分配给程序。
With file capabilities, you can assign capabilities to a program.
我利用该特性生成SQL文件和单独的PHP文件。
I use this feature to generate the SQL file and the individual PHP files.
使用细粒度文件更新特性,您可以在集群范围内拥有更灵活的应用程序文件,并避免引入新的单点故障。
Using the fine-gained file update feature, you can have a more flexible application file across the cluster, and avoid introducing a new single point of failure.
需要为刚才创建的文件系统启用配额特性。
Newly created filesystems need to be enabled for handling quotas.
由于OVF文件的导入导出特性,客户端会传回ovf文件到OCCI服务,或者以ovf格式来请求当前状态。
For an importing and exporting feature for OVF files clients would be Posting OVF files to an OCCI service or request the current state in an OVF format.
由于OVF文件的导入导出特性,客户端会传回ovf文件到OCCI服务,或者以ovf格式来请求当前状态。
For an importing and exporting feature for OVF files clients would be Posting OVF files to an OCCI service or request the current state in an OVF format.
应用推荐