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​(org.apache.camel.CamelContext camelContext,
                         String name,
                         Class<?> clazz,
                         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
        instance - the object created as instance of the class (if any)
        Throws:
        Exception - is thrown if error during post-processing