Class ProxyBuilder


  • public final class ProxyBuilder
    extends Object
    A build to create Camel proxies.
    • Constructor Detail

      • ProxyBuilder

        public ProxyBuilder​(org.apache.camel.CamelContext camelContext)
    • Method Detail

      • endpoint

        public ProxyBuilder endpoint​(String url)
        Send the proxied message to this endpoint
        Parameters:
        url - uri of endpoint
        Returns:
        the builder
      • endpoint

        public ProxyBuilder endpoint​(org.apache.camel.Endpoint endpoint)
        Send the proxied message to this endpoint
        Parameters:
        endpoint - the endpoint
        Returns:
        the builder
      • build

        public <T> T build​(Class<T> interfaceClass)
                    throws Exception
        Builds the proxy.
        Parameters:
        interfaceClass - the service interface
        Returns:
        the proxied bean
        Throws:
        Exception - is thrown if error creating the proxy
      • build

        public <T> T build​(Class<T>... interfaceClasses)
                    throws Exception
        Builds the proxy.
        Parameters:
        interfaceClasses - the service interface(s)
        Returns:
        the proxied bean
        Throws:
        Exception - is thrown if error creating the proxy