You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2011/11/30 07:50:27 UTC

svn commit: r1208298 - /camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java

Author: ningjiang
Date: Wed Nov 30 06:50:26 2011
New Revision: 1208298

URL: http://svn.apache.org/viewvc?rev=1208298&view=rev
Log:
CAMEL-4728 Add setDefaultEndpoint method on the interface of ProducerTemplate

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java?rev=1208298&r1=1208297&r2=1208298&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/ProducerTemplate.java Wed Nov 30 06:50:26 2011
@@ -79,6 +79,27 @@ public interface ProducerTemplate extend
      * @return the size of current cached resources
      */
     int getCurrentCacheSize();
+    
+    /**
+     * Get the default endpoint to use if none is specified
+     * 
+     * @return the default endpoint instance
+     */
+    Endpoint getDefaultEndpoint();
+    
+    /**
+     * Sets the default endpoint to use if none is specified
+     * 
+     * @param defaultEndpoint the default endpoint instance
+     */
+    void setDefaultEndpoint(Endpoint defaultEndpoint);
+
+    /**
+     * Sets the default endpoint uri to use if none is specified
+     * 
+     *  @param endpointUri the default endpoint uri
+     */
+    void setDefaultEndpointUri(String endpointUri);
 
     // Synchronous methods
     // -----------------------------------------------------------------------