class ClojureScriptEngineService implements ScriptEngineService {

  @Override public ScriptEngine createScriptEngine(ScriptLocation script)
    throws EngineException {

    if (m_cljFileMatcher.accept(script.getFile())) {
      try {
        return new ClojureScriptEngine(script);
      }
      catch (LinkageError e) {
        throw new EngineException("Clojure is not on the classpath", e);
      }
    }

    return null;
  }

}