Class Reflection.CachedClassResolver

  • Enclosing class:
    Reflection

    protected static class Reflection.CachedClassResolver
    extends Object
    This is a cache for loading classes by their name. It is supposed to reduce contention on the class-loader which otherwise might become a bottleneck.

    You can (and should) give it a timeout after which the resolution will be considered "stale" and refreshed. You can omit this in case you believe that class resolution will remain stable over the entire runtime.