public Servlet getServlet()

in src/main/java/org/apache/sling/scripting/java/impl/ServletWrapper.java [163:178]


    public Servlet getServlet() throws Exception {
        if (this.compileException != null) {
            throw this.compileException;
        }
        // check if the used class loader is still alive
        if (this.checkReload()) {
            synchronized (this) {
                if (this.checkReload()) {
                    logger.debug("Reloading {}", this.sourcePath);
                    this.compile();
                }
            }
        }

        return theServlet;
    }