|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface for services that are able to execute some form of an interpreted scripting language. Java objects can be passed to the script from Keel services, and visa-versa.
| Field Summary | |
static java.lang.String |
ROLEThe Avalon role name for the Script service |
| Method Summary | |
void |
execute(java.lang.String script)Run the script in the named file |
void |
expose(java.lang.Object o, java.lang.String name)Expose a Java object to the script context |
void |
expose(java.lang.Object o, java.lang.String name, java.lang.String scope)Expose a java object to the script context, with a scoped name |
void |
remove(java.lang.String name)Delete an object from the script context |
void |
remove(java.lang.String name, java.lang.String scope)Delete an object from the script context, with a scoped name |
java.lang.Object |
retrieve(java.lang.String name)Get an object from the script context |
java.lang.Object |
retrieve(java.lang.String name, java.lang.String scope)Get an object from the script context, with a scoped name |
| Field Detail |
public static final java.lang.String ROLE
| Method Detail |
public void expose(java.lang.Object o,
java.lang.String name)
throws ScriptException
o - The object to exposename - The name the object will be referred to byScriptException - Error when the object cannot be exposed
public void expose(java.lang.Object o,
java.lang.String name,
java.lang.String scope)
throws ScriptException
o - The object to exposename - The name the object will be referred to byscope - The scope for the nameScriptException - Error when the object cannot be exposed
public java.lang.Object retrieve(java.lang.String name)
throws ScriptException
name - The name of the object to retrieveScriptException - Error when the object cannot be retrieved
public java.lang.Object retrieve(java.lang.String name,
java.lang.String scope)
throws ScriptException
name - The name of the object to retrievescope - The scope for the nameScriptException - Error when the object cannot be retrieved
public void remove(java.lang.String name)
throws ScriptException
name - The name of the object to deleteScriptException - Error when the object cannot be deleted
public void remove(java.lang.String name,
java.lang.String scope)
throws ScriptException
name - The name of the object to deletescope - The scope for the nameScriptException - Error when the object cannot be deleted
public void execute(java.lang.String script)
throws ScriptException
script - The file name of the scriptScriptException - Error from the scripting engine
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||