Package org.apache.camel.builder
Class ProxyBuilder
- java.lang.Object
-
- org.apache.camel.builder.ProxyBuilder
-
public final class ProxyBuilder extends Object
A build to create Camel proxies.
-
-
Constructor Summary
Constructors Constructor Description ProxyBuilder(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tbuild(Class<T> interfaceClass)Builds the proxy.<T> Tbuild(Class<T>... interfaceClasses)Builds the proxy.ProxyBuilderendpoint(String url)Send the proxied message to this endpointProxyBuilderendpoint(org.apache.camel.Endpoint endpoint)Send the proxied message to this endpoint
-
-
-
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
-
-