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 handle BindToRegistry and Converter classes.

    • 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 context
        name - the name of the resource/class
        clazz - the class
        byteCode - 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