Package org.apache.camel.spi
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 TypeMethodDescriptionvoid
preCompile
(CamelContext camelContext, String name, String code) Invoked before the class has been compiled
-
Method Details
-
preCompile
Invoked before the class has been compiled- Parameters:
camelContext
- the camel contextname
- the name of the resource/classcode
- the source code of the class- Throws:
Exception
- is thrown if error during post-processing
-