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> T
build(Class<T> interfaceClass)
Builds the proxy.<T> T
build(Class<T>... interfaceClasses)
Builds the proxy.ProxyBuilder
endpoint(String url)
Send the proxied message to this endpointProxyBuilder
endpoint(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
-
-