KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > gumby > script > bsh > BeanshellEngine


1 package org.sapia.gumby.script.bsh;
2
3 import org.sapia.gumby.script.Engine;
4 import org.sapia.gumby.script.Script;
5
6 /**
7  * @author Yanick Duchesne
8  *
9  * <dl>
10  * <dt><b>Copyright: </b>
11  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
12  * Source Software </a>. All Rights Reserved.</dd>
13  * </dt>
14  * <dt><b>License: </b>
15  * <dd>Read the license.txt file of the jar or visit the <a
16  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
17  * OSS web site</dd>
18  * </dt>
19  * </dl>
20  */

21 public class BeanshellEngine implements Engine {
22
23   /**
24    * @see org.sapia.gumby.script.Engine#parseScript(java.lang.String)
25    */

26   public Script parseScript(String JavaDoc scriptContent) throws Exception JavaDoc {
27     return new BeanshellScript(scriptContent);
28   }
29
30 }
31
Popular Tags