| 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 |
|---|---|
Repository |
RhinoEngine.findRepository(String path,
Repository localPath)
Search for a repository in the local path, or the main repository path.
|
Repository |
RhinoEngine.getParentRepository(org.mozilla.javascript.Scriptable scope)
Get the repository associated with the scope or one of its prototypes
|
Repository |
ModuleScope.getRepository() |
Repository |
RingoConfig.getRepository(String path)
Get a resource from our script repository
|
Repository |
RingoConfig.getRingoHome()
Return the ringo install directory
|
Repository |
RhinoEngine.getRingoHome()
Get the our installation directory.
|
Repository |
RingoConfig.resolveRepository(String path,
boolean system)
Resolve a module repository path.
|
| Modifier and Type | Method and Description |
|---|---|
List<Repository> |
RingoConfig.getRepositories()
Get a list of repositoris from the given ringoHome and ringoPath settings
using the ringo.home and ringo.path system properties as fallback.
|
List<Repository> |
RhinoEngine.getRepositories()
Get the engine's module search path as a list of repositories
|
| Modifier and Type | Method and Description |
|---|---|
void |
RingoConfig.addModuleRepository(Repository repository)
Add a repository to the module search path.
|
Repository |
RhinoEngine.findRepository(String path,
Repository localPath)
Search for a repository in the local path, or the main repository path.
|
Resource |
RhinoEngine.findResource(String path,
ModuleLoader[] loaders,
Repository localRoot)
Search for a resource in a local path, or the main repository path.
|
ReloadableScript |
RhinoEngine.getScript(String moduleName,
Repository localPath)
Resolves a type name to a script file within our script directory
and returns a Scriptable evaluated to the file.
|
protected Resource |
RhinoEngine.loadPackage(String moduleName,
Repository localPath)
Resolves a module id to a package resource.
|
Trackable |
RhinoEngine.resolve(String path,
Repository localRoot)
Try to resolve path to a resource or repository relative to a local path,
or the engine's repository path.
|
| Constructor and Description |
|---|
RingoConfig(Repository ringoHome)
Create a new Ringo configuration and sets up its module search path.
|
RingoConfig(Repository ringoHome,
Repository appHome,
String[] userModules,
String[] systemModules)
Create a new Ringo configuration and sets up its module search path.
|
RingoConfig(Repository ringoHome,
String[] userModules,
String[] systemModules)
Create a new Ringo configuration and sets up its module search path.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRepository
Provides common methods and fields for the default implementations of the
repository interface
|
class |
FileRepository
Repository implementation for directories providing file resources
|
class |
WebappRepository |
class |
ZipRepository |
| Modifier and Type | Method and Description |
|---|---|
Repository |
Repository.getChildRepository(String path)
Get a child repository with the given path
|
Repository |
Trackable.getParentRepository()
Returns the parent repository containing this resource
|
Repository |
StringResource.getParentRepository() |
Repository |
AbstractResource.getParentRepository() |
Repository[] |
ZipRepository.getRepositories() |
Repository[] |
WebappRepository.getRepositories() |
Repository[] |
Repository.getRepositories()
Returns this repository's direct child repositories
|
Repository[] |
FileRepository.getRepositories() |
Repository |
Trackable.getRootRepository()
Returns the root repository of this resource
|
Repository |
StringResource.getRootRepository() |
Repository |
AbstractResource.getRootRepository() |
Repository |
AbstractRepository.getRootRepository()
Get the repository's root repository
|
Copyright © 2016. All rights reserved.