1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package net.sf.sail.core.activity.model;
25
26 import java.beans.Customizer;
27 import java.beans.beancontext.BeanContext;
28 import java.beans.beancontext.BeanContextChild;
29
30 import javax.script.ScriptContext;
31 import javax.script.ScriptException;
32
33 public interface IScriptBean
34 extends BeanContextChild
35 {
36 public static final int ENGINE_SCOPE = ScriptContext.ENGINE_SCOPE;
37 public static final int GLOBAL_SCOPE = ScriptContext.GLOBAL_SCOPE;
38
39 public String getName();
40 public void setName(String value);
41 public Object evaluate() throws ScriptException;
42 public Class<? extends Customizer> getCustomizerClass();
43 public void setCustomizerClass(Class<? extends Customizer> customizer);
44 public BeanContext getScriptParent();
45 public void setScriptParent(BeanContext beanContext);
46 public IScript getScript();
47 public void setScript(IScript text);
48 }