View Javadoc

1   /*
2    *  Copyright (C) 2004  The Concord Consortium, Inc.,
3    *  10 Concord Crossing, Concord, MA 01741
4    *
5    *  Web Site: http://www.concord.org
6    *  Email: info@concord.org
7    *
8    *  This library is free software; you can redistribute it and/or
9    *  modify it under the terms of the GNU Lesser General Public
10   *  License as published by the Free Software Foundation; either
11   *  version 2.1 of the License, or (at your option) any later version.
12   *
13   *  This library is distributed in the hope that it will be useful,
14   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   *  Lesser General Public License for more details.
17   *
18   *  You should have received a copy of the GNU Lesser General Public
19   *  License along with this library; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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  }