org.apache.camel.builder
Class ProxyBuilder

java.lang.Object
  extended by org.apache.camel.builder.ProxyBuilder

public final class ProxyBuilder
extends Object

A build to create Camel proxies.

Version:

Constructor Summary
ProxyBuilder(CamelContext camelContext)
           
 
Method Summary
<T> T
build(Class<?>... interfaceClasses)
          Builds the proxy.
 ProxyBuilder endpoint(Endpoint endpoint)
          Send the proxied message to this endpoint
 ProxyBuilder endpoint(String url)
          Send the proxied message to this endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyBuilder

public ProxyBuilder(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(Endpoint endpoint)
Send the proxied message to this endpoint

Parameters:
endpoint - the endpoint
Returns:
the builder

build

public <T> T build(Class<?>... 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


Apache CAMEL