Interface CompilePreProcessor


public interface CompilePreProcessor
Allows to plugin custom pre-processors that are processed before the DSL has loaded the source and compiled into a Java object.

This is used among others to detect imported classes that may need to be downloaded into classloader to allow to compile the class.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    preCompile(CamelContext camelContext, String name, String code)
    Invoked before the class has been compiled
  • Method Details

    • preCompile

      void preCompile(CamelContext camelContext, String name, String code) throws Exception
      Invoked before the class has been compiled
      Parameters:
      camelContext - the camel context
      name - the name of the resource/class
      code - the source code of the class
      Throws:
      Exception - is thrown if error during post-processing