Class ModuleCache


  • public final class ModuleCache
    extends java.lang.Object
    Caches modules by the URI originally specified in the importing module, and also by the resolved URI from which the module was eventually loaded. Caching by original URI avoids any overhead incurred by resolving a module multiple times. Caching by resolved URI avoids any overhead incurred by evaluating a module multiple times, and also avoids any inconsistencies caused by module contents changing during evaluation.