Interface ComponentBuilder<C extends org.apache.camel.Component>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      C build()
      Builds a component using the default CamelContext.
      C build​(org.apache.camel.CamelContext context)
      Builds a component using a provided CamelContext.
      void doSetProperty​(String name, Object value)
      Adds an option to this component.
      void register​(org.apache.camel.CamelContext context, String componentName)
      Builds and register a component to the provided CamelContext.
    • Method Detail

      • build

        C build()
        Builds a component using the default CamelContext.
        Returns:
        a built Component
      • build

        C build​(org.apache.camel.CamelContext context)
        Builds a component using a provided CamelContext.
        Parameters:
        context - the camel context
        Returns:
        a built Component
      • register

        void register​(org.apache.camel.CamelContext context,
                      String componentName)
        Builds and register a component to the provided CamelContext.
        Parameters:
        context - the camel context
        componentName - the name the component is registered as
      • doSetProperty

        void doSetProperty​(String name,
                           Object value)
        Adds an option to this component. This API is only intended for Camel internally.
        Parameters:
        name - the name of the option
        value - the value