public interface ScriptContextDAO
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
addContextItem(java.lang.Object obj)
Add a context item into the scripting environment.
|
void |
addDisposeListener(DisposeListener listener)
Add a new DisposeListener to be notified when the ScriptContextDAO is
disposed.
|
java.lang.Object |
lookupItem(java.lang.String name)
Find a context item object that has been added to the scripting
environment.
|
java.lang.Object |
updateContextItem(java.lang.String name,
java.lang.Object obj)
Update or set a current context item.
|
java.lang.Object addContextItem(java.lang.Object obj)
throws ScriptEvaluationException
getKey() method from ObjectWrapper.obj - The object to wrap and add to the scripting environment.ScriptEvaluationException - Thrown if an error occurs adding the given item to the
scripting environment.WrapperConfigDefaultsjava.lang.Object updateContextItem(java.lang.String name,
java.lang.Object obj)
throws ScriptEvaluationException
obj and will accessible with as
name.name - The name of the context item to update or add. If name is
null, then updateContextItem() is exactly the
same as addContextItem().obj - The object to wrap and update in the scripting environment.ScriptEvaluationException - Thrown if an error occurs adding the given item to the
scripting environment.WrapperConfigDefaultsjava.lang.Object lookupItem(java.lang.String name)
name - The name of the context item to find.void addDisposeListener(DisposeListener listener)
dispose() method, though the order the
DisposeListeners are notified in is not guarenteed. Each listener will
only be notified once regardless of how many times it is added via
addDisposeListener().listener - The DisposeListener to add.