Package | Description |
---|---|
java.util |
REVISED Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
javax.tools |
REVISED Provides interfaces for tools which can be invoked from a program,
for example, compilers.
|
Modifier and Type | Method | Description |
---|---|---|
static <S> ServiceLoader<S> |
ServiceLoader.load(Class<S> service) |
REVISED Creates a new service loader for the given service type, using the
current thread's context class loader.
|
static <S> ServiceLoader<S> |
ServiceLoader.load(Class<S> service,
ClassLoader loader) |
REVISED Creates a new service loader for the given service.
|
static <S> ServiceLoader<S> |
ServiceLoader.load(ModuleLayer layer,
Class<S> service) |
NEW Creates a new service loader for the given service type to load service
providers from modules in the given module layer and its ancestors.
|
static <S> ServiceLoader<S> |
ServiceLoader.loadInstalled(Class<S> service) |
REVISED Creates a new service loader for the given service type, using the
platform class loader.
|
Modifier and Type | Method | Description |
---|---|---|
<S> ServiceLoader<S> |
ForwardingJavaFileManager.getServiceLoader(JavaFileManager.Location location,
Class<S> service) |
NEW
|
default <S> ServiceLoader<S> |
JavaFileManager.getServiceLoader(JavaFileManager.Location location,
Class<S> service) |
NEW Get a service loader for a specific service class from a given location.
|
Copyright © 1993, 2017, Oracle and/or its affiliates · All rights reserved · License