public enum ContextClassLoaderReference extends Enum<ContextClassLoaderReference> implements ThreadContextReference<ClassLoader>
ClassLoader.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Thread thread,
ClassLoader loader) |
ClassLoader |
apply(Thread thread) |
static ContextClassLoaderReference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextClassLoaderReference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfaccept, getandThenpublic static final ContextClassLoaderReference INSTANCE
public static ContextClassLoaderReference[] values()
for (ContextClassLoaderReference c : ContextClassLoaderReference.values()) System.out.println(c);
public static ContextClassLoaderReference 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 ClassLoader apply(Thread thread)
apply in interface Function<Thread,ClassLoader>public void accept(Thread thread, ClassLoader loader)
accept in interface BiConsumer<Thread,ClassLoader>Copyright © 2021 JBoss by Red Hat. All rights reserved.