camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: svn commit: r656223 - /activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java
Date Wed, 14 May 2008 10:34:03 GMT
Rom, 

Just noticed from the commit mail:
Shouldn't we program against interfaces. If not mistaking DefaultExchange is the implementation
of Exchange:

So:
Consumer<DefaultExchange>

Should be:
Consumer<Exchange>



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: romkal@apache.org [mailto:romkal@apache.org] 
Sent: 14. maj 2008 12:24
To: camel-commits@activemq.apache.org
Subject: svn commit: r656223 - /activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java

Author: romkal
Date: Wed May 14 03:24:23 2008
New Revision: 656223

URL: http://svn.apache.org/viewvc?rev=656223&view=rev
Log:
by accident removed one constructor - now fixed

Modified:
    activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java

Modified: activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java?rev=656223&r1=656222&r2=656223&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java
(original)
+++ activemq/camel/trunk/components/camel-sql/src/main/java/org/apache/camel/component/sql/SqlEndpoint.java
Wed May 14 03:24:23 2008
@@ -49,6 +49,12 @@
         this.query = query;
     }
 
+    public SqlEndpoint(String endpointUri, JdbcTemplate jdbcTemplate, String query) {
+        super(endpointUri);
+        this.jdbcTemplate = jdbcTemplate;
+        this.query = query;
+    }
+    
     public Consumer<DefaultExchange> createConsumer(Processor processor) throws Exception
{
         throw new UnsupportedOperationException("Not yet implemented");
     }



Mime
View raw message