camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r931232 - in /camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail: GMailComponent.java GMailEndpoint.java
Date Tue, 06 Apr 2010 17:10:59 GMT
Author: davsclaus
Date: Tue Apr  6 17:10:58 2010
New Revision: 931232

URL: http://svn.apache.org/viewvc?rev=931232&view=rev
Log:
camel-gae: When creating Endpoint the CamelContext should be provided as its best practice.
Fixed testing to use per test to avoid failed tests on other boxes due some weird side effects.

Modified:
    camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailComponent.java
    camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailEndpoint.java

Modified: camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailComponent.java?rev=931232&r1=931231&r2=931232&view=diff
==============================================================================
--- camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailComponent.java
(original)
+++ camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailComponent.java
Tue Apr  6 17:10:58 2010
@@ -34,7 +34,7 @@ public class GMailComponent extends Defa
     protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object>
parameters) throws Exception {
         OutboundBinding binding = resolveAndRemoveReferenceParameter(
                 parameters, "outboundBindingRef", OutboundBinding.class, new GMailBinding());
-        GMailEndpoint endpoint = new GMailEndpoint(uri, getCamelContext(), remaining);
+        GMailEndpoint endpoint = new GMailEndpoint(uri, this, remaining);
         endpoint.setOutboundBinding(binding);
         return endpoint;
     }

Modified: camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailEndpoint.java?rev=931232&r1=931231&r2=931232&view=diff
==============================================================================
--- camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailEndpoint.java
(original)
+++ camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/mail/GMailEndpoint.java
Tue Apr  6 17:10:58 2010
@@ -18,9 +18,9 @@ package org.apache.camel.component.gae.m
 
 import com.google.appengine.api.mail.MailService;
 import com.google.appengine.api.mail.MailService.Message;
-
 import com.google.appengine.api.mail.MailServiceFactory;
-import org.apache.camel.CamelContext;
+
+import org.apache.camel.Component;
 import org.apache.camel.Consumer;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
@@ -47,8 +47,8 @@ public class GMailEndpoint extends Defau
     
     private String bcc;
     
-    public GMailEndpoint(String endpointUri, CamelContext camelContext, String sender) {
-        super(endpointUri, camelContext);
+    public GMailEndpoint(String endpointUri, Component component, String sender) {
+        super(endpointUri, component);
         this.sender = sender;
         this.mailService = MailServiceFactory.getMailService();
     }



Mime
View raw message