com.thinkaurelius.titan.core.util

## Class ReflectiveConfigOptionLoader

- java.lang.Object
- - com.thinkaurelius.titan.core.util.ReflectiveConfigOptionLoader

-     public class ReflectiveConfigOptionLoader
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReflectiveConfigOptionLoader()`

  - ### Method Summary

    Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ReflectiveConfigOptionLoader

          public ReflectiveConfigOptionLoader()

  - ### Method Detail

    - #### load

          public static void load()

      Use reflection to iterate over the classpath looking for `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).

    - #### loadOnce

          public static void loadOnce()

      Reflectively load types at most once over the life of this class. This method is synchronized and uses a static class field to ensure that it calls `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.