软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
Modifier and Type | Method and Description |
---|---|
static <S> ServiceLoader<S> |
ServiceLoader.load(类<S> service)
创建一个新的服务程序对给定的服务类型,使用当前线程的
context class loader。
|
static <S> ServiceLoader<S> |
ServiceLoader.load(类<S> service, ClassLoader loader)
为给定的服务类型和类装载器创建一个新的服务装载器。
|
static <S> ServiceLoader<S> |
ServiceLoader.loadInstalled(类<S> service)
为给定的服务类型创建一个新的服务加载程序,使用扩展类加载程序。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.