|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptExtension
ScriptExtensions are the main method to add new functionality, new scripting objects and methods, into the scripting environment. Each ScriptExtension must have a default constructor so it can be easily created using reflection.
Field Summary | |
---|---|
static java.lang.String |
ILLEGAL_ARG
CTGIME212W TMS Message to show that the passed in ScriptInterface does not implement the correct ScriptInterface subclass. |
Method Summary | |
---|---|
java.util.List |
getContextItems()
Get all the scripting objects the extension exports wrapped as ContextItem objects. |
void |
initialize(ScriptInterface si,
ScriptContextDAO dao)
Initialize the ScriptExtension by providing a reference to the ScriptInterface this extension should use to set its state. |
Field Detail |
---|
static final java.lang.String ILLEGAL_ARG
Method Detail |
---|
java.util.List getContextItems()
void initialize(ScriptInterface si, ScriptContextDAO dao) throws ScriptException, java.lang.IllegalArgumentException
si
- This ScriptInterface must be downcastable to the correct
specific type for the given extension.dao
- The Data Access Object to use to lookup and place items into
the scripting environment.
ScriptException
- If an error occurs while initializing the extension.
java.lang.IllegalArgumentException
- If si is not the correct type for the given extension.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |