Class KieMemoryCompiler

java.lang.Object
org.kie.memorycompiler.KieMemoryCompiler

public class KieMemoryCompiler extends Object
  • Method Details

    • compile

      public static Map<String,Class<?>> compile(Map<String,String> classNameSourceMap, ClassLoader classLoader)
      Compile the given sources without adding compiled classes to the given ClassLoader classNameSourceMap' key must be the FQDN of the class to compile
      Parameters:
      classNameSourceMap -
      classLoader -
      Returns:
    • compile

      public static Map<String,Class<?>> compile(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings)
      Compile the given sources without adding compiled classes to the given ClassLoader classNameSourceMap' key must be the FQDN of the class to compile. Additional compiler settings can be provided using JavaCompilerSettings
      Parameters:
      classNameSourceMap -
      classLoader -
      compilerSettings -
      Returns:
    • compileNoLoad

      public static Map<String,byte[]> compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader)
      Compile the given sources and returns the generated byte codes
      Parameters:
      classNameSourceMap -
      classLoader -
      Returns:
    • compileNoLoad

      public static Map<String,byte[]> compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaConfiguration.CompilerType compilerType)
      Compile the given sources and returns the generated byte codes
      Parameters:
      classNameSourceMap -
      classLoader -
      Returns:
    • compileNoLoad

      public static Map<String,byte[]> compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings)
      Compile the given sources and returns the generated byte codes. Additional compiler settings can be provided using JavaCompilerSettings
      Parameters:
      classNameSourceMap -
      classLoader -
      compilerSettings -
      Returns:
    • compileNoLoad

      public static Map<String,byte[]> compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings, JavaConfiguration.CompilerType compilerType)
      Compile the given sources and returns the generated byte codes. Additional compiler settings can be provided using JavaCompilerSettings
      Parameters:
      classNameSourceMap -
      classLoader -
      compilerSettings -
      Returns: