public enum InitializationPriority extends Enum<InitializationPriority>
NORMAL
. Starting in 5.4,
these values have less meaning, as the dynamic loading of modules may
have unexpected effects on the exact order in which initialization occurs as some initializations may be deferred until
a referenced module, or a dependency of a referenced module, has been loaded.Enum Constant and Description |
---|
EARLY
All early execution occurs before
NORMAL . |
IMMEDIATE
Deprecated.
Deprecated in 5.4; this is now treated as "earlier than early".
|
LATE
Execution occurs after
NORMAL . |
NORMAL
This is the typical priority.
|
Modifier and Type | Method and Description |
---|---|
static InitializationPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InitializationPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InitializationPriority IMMEDIATE
eval
, and occurs once all JavaScript libraries
(but not modules) for the page have been loaded.public static final InitializationPriority EARLY
NORMAL
.public static final InitializationPriority NORMAL
public static final InitializationPriority LATE
NORMAL
.public static InitializationPriority[] values()
for (InitializationPriority c : InitializationPriority.values()) System.out.println(c);
public static InitializationPriority valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.