public class ScriptRegistry extends java.lang.Object implements IScriptRegistry
IScriptRegistry simply using maps to perform 1:1 mapping.| Constructor and Description |
|---|
ScriptRegistry() |
| Modifier and Type | Method and Description |
|---|---|
IResource |
getResource(Script script)
|
Script |
getScript(IResource resource)
|
void |
put(Script script)
Add a new
Script to the registry and store its mapping. |
public Script getScript(IResource resource)
IScriptRegistrypublic IResource getResource(Script script)
IScriptRegistrygetResource in interface IScriptRegistryIResource identified by Script or null if no mapping found.public void put(Script script)
IScriptRegistryScript to the registry and store its mapping.put in interface IScriptRegistryscript - Script to be stored in registry.