Package com.ibm.xsp.extlib.javacompiler

Examples of com.ibm.xsp.extlib.javacompiler.JavaSourceClassLoader.addClass()


  @Override
  public synchronized Class<JspFragment> compileSnippet(String jspClassName, String source) throws Exception {
    JavaSourceClassLoader loader = getSourceClassLoader();
    Class<JspFragment> f = getCompiledClass(jspClassName);
    if(f==null) {
      f = (Class<JspFragment>)loader.addClass(jspClassName, source);
    }
    return f;
  }

  // We don't want to share the class loader as the snippets can be modified, and
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.