Package org.apache.camel.spi
Interface CompilePostProcessor
-
public interface CompilePostProcessor
Allows to plugin custom post processors that are processed after the DSL has loaded the source and compiled into a Java object. This is used to detect and handleBindToRegistry
andConverter
classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
postCompile(CamelContext camelContext, String name, Class<?> clazz, byte[] byteCode, Object instance)
Invoked after the class has been compiled
-
-
-
Method Detail
-
postCompile
void postCompile(CamelContext camelContext, String name, Class<?> clazz, byte[] byteCode, Object instance) throws Exception
Invoked after the class has been compiled- Parameters:
camelContext
- the camel contextname
- the name of the resource/classclazz
- the classbyteCode
- byte code that was compiled from the source as the class (only supported on some DSLs)instance
- the object created as instance of the class (if any)- Throws:
Exception
- is thrown if error during post-processing
-
-