< prev index next >

src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.script;
  27 
  28 import java.util.List;
  29 
  30 /**
  31  * <code>ScriptEngineFactory</code> is used to describe and instantiate
  32  * <code>ScriptEngines</code>.
  33  * <br><br>
  34  * Each class implementing <code>ScriptEngine</code> has a corresponding factory
  35  * that exposes metadata describing the engine class.
  36  * <br><br>The <code>ScriptEngineManager</code>
  37  * uses the service provider mechanism described in the <i>Jar File Specification</i> to obtain
  38  * instances of all <code>ScriptEngineFactories</code> available in
  39  * the current ClassLoader.
  40  *
  41  * @since 1.6
  42  */
  43 public interface ScriptEngineFactory {
  44     /**
  45      * Returns the full  name of the <code>ScriptEngine</code>.  For
  46      * instance an implementation based on the Mozilla Rhino Javascript engine
  47      * might return <i>Rhino Mozilla Javascript Engine</i>.
  48      * @return The name of the engine implementation.
  49      */
  50     public String getEngineName();
  51 
  52     /**
  53      * Returns the version of the <code>ScriptEngine</code>.
  54      * @return The <code>ScriptEngine</code> implementation version.
  55      */
  56     public String getEngineVersion();
  57 
  58 
  59     /**




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.script;
  27 
  28 import java.util.List;
  29 
  30 /**
  31  * <code>ScriptEngineFactory</code> is used to describe and instantiate
  32  * <code>ScriptEngines</code>.
  33  * <br><br>
  34  * Each class implementing <code>ScriptEngine</code> has a corresponding factory
  35  * that exposes metadata describing the engine class.
  36  * <br><br>The <code>ScriptEngineManager</code>
  37  * uses the service-provider loader mechanism described in the {@link java.util.ServiceLoader} class to obtain
  38  * instances of all <code>ScriptEngineFactories</code>.

  39  *
  40  * @since 1.6
  41  */
  42 public interface ScriptEngineFactory {
  43     /**
  44      * Returns the full  name of the <code>ScriptEngine</code>.  For
  45      * instance an implementation based on the Mozilla Rhino Javascript engine
  46      * might return <i>Rhino Mozilla Javascript Engine</i>.
  47      * @return The name of the engine implementation.
  48      */
  49     public String getEngineName();
  50 
  51     /**
  52      * Returns the version of the <code>ScriptEngine</code>.
  53      * @return The <code>ScriptEngine</code> implementation version.
  54      */
  55     public String getEngineVersion();
  56 
  57 
  58     /**


< prev index next >