public final class I18nDescriptors extends java.lang.Object
Reads every I18nDescriptor on the classpath.
Discovery is an exact-name java.lang.ClassLoader#getResources lookup, the same mechanism Spring
Boot uses for AutoConfiguration.imports. That matters for GraalVM: a wildcard
classpath*:*.properties scan cannot be resolved in a native image, whereas an exact name
needs only a single resource hint.
Reading order is not meaningful. Classloader enumeration order is not portable across Gradle test runtimes, executable jars, layered jars and native images, and it cannot distinguish an application from a plugin at all. Precedence therefore comes from the descriptor contents — see EffectiveI18nDescriptors.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
DESCRIPTOR_PATH |
Location of the descriptor within an application or plugin artifact. |
static java.lang.String |
SUPPORTED_FORMAT_VERSION |
The only descriptor format this release understands. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static java.util.List<I18nDescriptor> |
load(java.lang.ClassLoader classLoader)Loads every descriptor visible to the supplied class loader. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Location of the descriptor within an application or plugin artifact.
The only descriptor format this release understands.
Loads every descriptor visible to the supplied class loader.
classLoader - the class loader to search; the thread context loader when null