Package org.apache.camel.builder
Class ProxyBuilder
java.lang.Object
org.apache.camel.builder.ProxyBuilder
A build to create Camel proxies.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Builds the proxy.<T> T
Builds the proxy.Send the proxied message to this endpointendpoint
(org.apache.camel.Endpoint endpoint) Send the proxied message to this endpoint
-
Constructor Details
-
ProxyBuilder
public ProxyBuilder(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
endpoint
Send the proxied message to this endpoint- Parameters:
url
- uri of endpoint- Returns:
- the builder
-
endpoint
Send the proxied message to this endpoint- Parameters:
endpoint
- the endpoint- Returns:
- the builder
-
build
Builds the proxy.- Parameters:
interfaceClass
- the service interface- Returns:
- the proxied bean
- Throws:
Exception
- is thrown if error creating the proxy
-
build
Builds the proxy.- Parameters:
interfaceClasses
- the service interface(s)- Returns:
- the proxied bean
- Throws:
Exception
- is thrown if error creating the proxy
-