| Package | Description |
|---|---|
| org.ringojs.engine |
The core scripting engine including the module loader.
|
| org.ringojs.repository |
A framework for unified loading of scripts and other resources.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
RhinoEngine.findResource(String path,
ModuleLoader[] loaders,
Repository localRoot)
Search for a resource in a local path, or the main repository path.
|
Resource |
RingoConfig.getMainResource()
Get the main script resource resolved by calling
RingoConfig.setMainScript(String). |
Resource |
RingoConfig.getResource(String path)
Get a resource from our script repository
|
Resource |
RingoConfig.getResource(String path,
ModuleLoader[] loaders)
Get a resource from our script repository
|
Resource |
ReloadableScript.getSource()
Get the script's source resource.
|
protected Resource |
RhinoEngine.loadPackage(String moduleName,
Repository localPath)
Resolves a module id to a package resource.
|
| Modifier and Type | Method and Description |
|---|---|
List<Resource> |
RhinoEngine.findResources(String path,
boolean recursive)
Get a list of all child resources for the given path relative to
our script repository.
|
List<Resource> |
RingoConfig.getResources(String path,
boolean recursive)
Get a list of all child resources for the given path relative to
our script repository.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleLoader |
RhinoEngine.getModuleLoader(Resource resource) |
abstract Object |
ModuleLoader.load(org.mozilla.javascript.Context cx,
RhinoEngine engine,
Object securityDomain,
String moduleName,
String charset,
Resource resource) |
protected void |
RingoWorker.registerModule(Resource resource,
org.mozilla.javascript.Scriptable module)
Add a resource/scope pair to our map of known up-to-date modules.
|
| Constructor and Description |
|---|
ReloadableScript(Resource source,
RhinoEngine engine)
Construct a Script from the given script resource.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractResource |
class |
FileResource |
class |
StringResource |
class |
WebappResource |
class |
ZipResource |
| Modifier and Type | Method and Description |
|---|---|
Resource |
Repository.getResource(String resourceName)
Returns a specific direct resource of the repository
|
Resource |
AbstractRepository.getResource(String subpath)
Get a resource contained in this repository identified by the given local name.
|
Resource[] |
Repository.getResources()
Get a list of resources contained in this repository identified by the
given local name.
|
Resource[] |
AbstractRepository.getResources() |
Resource[] |
Repository.getResources(boolean recursive)
Get a list of resources contained in this repository identified by the
given local name.
|
Resource[] |
AbstractRepository.getResources(boolean recursive) |
Resource[] |
Repository.getResources(String resourcePath,
boolean recursive)
Get a list of resources contained in this repository identified by the
given local name.
|
Resource[] |
AbstractRepository.getResources(String resourcePath,
boolean recursive) |
protected Resource |
ZipRepository.lookupResource(String name)
Called to create a child resource for this repository.
|
protected Resource |
WebappRepository.lookupResource(String name) |
protected Resource |
FileRepository.lookupResource(String name)
Called to create a child resource for this repository
|
protected abstract Resource |
AbstractRepository.lookupResource(String name)
Called to create a child resource for this repository if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ZipRepository.getResources(List<Resource> list,
boolean recursive) |
protected void |
WebappRepository.getResources(List<Resource> list,
boolean recursive) |
protected void |
FileRepository.getResources(List<Resource> list,
boolean recursive) |
protected abstract void |
AbstractRepository.getResources(List<Resource> list,
boolean recursive)
Add the repository's resources into the list, optionally descending into
nested repositories.
|
Copyright © 2016. All rights reserved.