Class StrongCachingModuleScriptProvider
java.lang.Object
org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase
org.mozilla.javascript.commonjs.module.provider.StrongCachingModuleScriptProvider
- All Implemented Interfaces:
Serializable
,ModuleScriptProvider
A module script provider that uses a module source provider to load modules
and caches the loaded modules. It strongly references the loaded modules,
thus a module once loaded will not be eligible for garbage collection before
the module provider itself becomes eligible.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase
CachingModuleScriptProviderBase.CachedModuleScript
-
Constructor Summary
ConstructorsConstructorDescriptionStrongCachingModuleScriptProvider
(ModuleSourceProvider moduleSourceProvider) Creates a new module provider with the specified module source provider. -
Method Summary
Methods inherited from class org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase
getModuleScript
-
Constructor Details
-
StrongCachingModuleScriptProvider
Creates a new module provider with the specified module source provider.- Parameters:
moduleSourceProvider
- provider for modules' source code
-