public class StrongCachingModuleScriptProvider extends CachingModuleScriptProviderBase
CachingModuleScriptProviderBase.CachedModuleScript
Constructor and Description |
---|
StrongCachingModuleScriptProvider(ModuleSourceProvider moduleSourceProvider)
Creates a new module provider with the specified module source provider.
|
Modifier and Type | Method and Description |
---|---|
protected CachingModuleScriptProviderBase.CachedModuleScript |
getLoadedModule(java.lang.String moduleId)
Retrieves an already loaded moduleScript stored using
CachingModuleScriptProviderBase.putLoadedModule(String, ModuleScript, Object) . |
protected void |
putLoadedModule(java.lang.String moduleId,
ModuleScript moduleScript,
java.lang.Object validator)
Store a loaded module script for later retrieval using
CachingModuleScriptProviderBase.getLoadedModule(String) . |
getConcurrencyLevel, getModuleScript
public StrongCachingModuleScriptProvider(ModuleSourceProvider moduleSourceProvider)
moduleSourceProvider
- provider for modules' source codeprotected CachingModuleScriptProviderBase.CachedModuleScript getLoadedModule(java.lang.String moduleId)
CachingModuleScriptProviderBase
CachingModuleScriptProviderBase.putLoadedModule(String, ModuleScript, Object)
.getLoadedModule
in class CachingModuleScriptProviderBase
moduleId
- the ID of the moduleprotected void putLoadedModule(java.lang.String moduleId, ModuleScript moduleScript, java.lang.Object validator)
CachingModuleScriptProviderBase
CachingModuleScriptProviderBase.getLoadedModule(String)
.putLoadedModule
in class CachingModuleScriptProviderBase
moduleId
- the ID of the modulemoduleScript
- the module scriptvalidator
- the validator for the module's source text entity