public enum ReflectiveConfigOptionLoader extends Enum<ReflectiveConfigOptionLoader>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
loadAll(Class<?> caller)
Reflectively load types at most once over the life of this class.
|
void |
loadStandard(Class<?> caller) |
ReflectiveConfigOptionLoader |
reset() |
ReflectiveConfigOptionLoader |
setEnabled(boolean enabled) |
ReflectiveConfigOptionLoader |
setPreferredClassLoaders(List<ClassLoader> loaders) |
ReflectiveConfigOptionLoader |
setUseCallerLoader(boolean b) |
ReflectiveConfigOptionLoader |
setUseThreadContextLoader(boolean b) |
static ReflectiveConfigOptionLoader |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReflectiveConfigOptionLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectiveConfigOptionLoader INSTANCE
public static ReflectiveConfigOptionLoader[] values()
for (ReflectiveConfigOptionLoader c : ReflectiveConfigOptionLoader.values()) System.out.println(c);
public static ReflectiveConfigOptionLoader 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 ReflectiveConfigOptionLoader setUseThreadContextLoader(boolean b)
public ReflectiveConfigOptionLoader setUseCallerLoader(boolean b)
public ReflectiveConfigOptionLoader setPreferredClassLoaders(List<ClassLoader> loaders)
public ReflectiveConfigOptionLoader setEnabled(boolean enabled)
public ReflectiveConfigOptionLoader reset()
public void loadAll(Class<?> caller)
load(LoaderConfiguration, Class)
only on the first invocation and does nothing
thereafter. This is the right behavior as long as the classpath doesn't
change in the middle of the enclosing JVM's lifetime.public void loadStandard(Class<?> caller)
Copyright © 2012–2023. All rights reserved.