/plugins/ScriptEnginePlugin/tags/release-0-3-0/main/src/java/com/townsfolkdesigns/jedit/plugins/scripting/ScriptEngineService.java
# · Java · 46 lines · 6 code · 5 blank · 35 comment · 0 complexity · 7ba978db61a9cf51439f7e6e99ecd04e MD5 · raw file
- /*
- * Copyright (c) 2008 TownsfolkDesigns.com
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
- package com.townsfolkdesigns.jedit.plugins.scripting;
- import org.gjt.sp.jedit.Mode;
- /**
- * A ScriptEngineService maps a mode to a given Script Engine.<br />
- * Eg. The JavascriptEngineService should return the mode for Javascript, and the engine name of "javascript".
- * This engine name is what is used to locate the scripting engine from the ScripEngineManager.
- * @author elberry
- */
- public interface ScriptEngineService {
- /**
- * Get the script engine factory class used in ScriptEngineManager.
- * @return the script engine factory class used in ScriptEngineManager.
- */
- public Class getEngineFactoryClass();
- /**
- * Get the mode the script engine is associated with.
- * @return the mode the script engine is associated with.
- */
- public Mode getMode();
- }