public SecurityGroovyRealm(GroovyScriptEngine groovyScriptEngine, String scriptUrl, ServletContext servletContext) throws ScriptException, ResourceException, InstantiationException, IllegalAccessException { this.groovyScriptEngine = groovyScriptEngine; this.scriptUrl = scriptUrl; this.servletContext = servletContext; doEnsureDelegate(); }
private synchronized PortofinoRealm ensureDelegate() { if(destroyed) { throw new IllegalStateException("This realm has been destroyed."); } try { return doEnsureDelegate(); } catch (Exception e) { throw new Error("Security.groovy not found or not loadable", e); } }