public enum WebComponentsPolyfillMode extends Enum<WebComponentsPolyfillMode>
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldLoad(ClassLoader classLoader)
Checks if the polyfill should be loaded.
|
static WebComponentsPolyfillMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebComponentsPolyfillMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebComponentsPolyfillMode AUTOMATIC
public static final WebComponentsPolyfillMode NO
public static final WebComponentsPolyfillMode YES
public static WebComponentsPolyfillMode[] values()
for (WebComponentsPolyfillMode c : WebComponentsPolyfillMode.values()) System.out.println(c);
public static WebComponentsPolyfillMode 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 nullpublic boolean shouldLoad(ClassLoader classLoader)
If mode is AUTOMATIC, uses the given class loader to detect if
resources are present which indicates that the polyfill should be loaded.
classLoader - class loader to use when finding resources.true if the polyfill should be loaded,
false otherwiseCopyright © 2018 Vaadin Ltd. All Rights Reserved.