Documentation

The Java™ Tutorials
Hide TOC
Other Configuration Utilities其他配置实用程序
Trail: Essential Java Classes
Lesson: The Platform Environment
Section: Configuration Utilities

Other Configuration Utilities其他配置实用程序

Here is a summary of some other configuration utilities.下面是一些其他配置实用程序的摘要。

The Preferences API allows applications to store and retrieve configuration data in an implementation-dependent backing store. Preferences API允许应用程序在依赖于实现的备份存储中存储和检索配置数据。Asynchronous updates are supported, and the same set of preferences can be safely updated by multiple threads and even multiple applications. 支持异步更新,同一组首选项可以由多个线程甚至多个应用程序安全地更新。For more information, refer to the Preferences API Guide.有关更多信息,请参阅《首选项API指南》。

An application deployed in a JAR archive uses a manifest to describe the contents of the archive. For more information, refer to the Packaging Programs in JAR Files lesson.

The configuration of a Java Web Start application is contained in a JNLP file. For more information, refer to the Java Web Start lesson.

The configuration of a Java Plug-in applet is partially determined by the HTML tags used to embed the applet in the web page. Depending on the applet and the browser, these tags can include <applet>, <object>, <embed>, and <param>. For more information, refer to the Java Applets lesson.

The class java.util.ServiceLoader provides a simple service provider facility. A service provider is an implementation of a service — a well-known set of interfaces and (usually abstract) classes. The classes in a service provider typically implement the interfaces and subclass the classes defined in the service. Service providers can be installed as extensions (see The Extension Mechanism). Providers can also be made available by adding them to the class path or by some other platform-specific means.还可以通过将提供者添加到类路径或通过某些其他特定于平台的方式使其可用。


Previous page: Environment Variables
Next page: System Utilities