public class ReflectiveConfigOptionLoader extends Object
| Constructor and Description |
|---|
ReflectiveConfigOptionLoader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
load()
Use reflection to iterate over the classpath looking for
PreInitializeConfigOptions annotations, then load any such
annotated types found. |
static void |
loadOnce()
Reflectively load types at most once over the life of this class.
|
public static void load()
PreInitializeConfigOptions annotations, then load any such
annotated types found. This method's runtime is roughly proportional to
the number of elements in the classpath (and can be substantial).public static void loadOnce()
load() 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.Copyright © 2012–2014. All rights reserved.