ppalaga commented on a change in pull request #2921:
URL: https://github.com/apache/camel-quarkus/pull/2921#discussion_r673809329
##########
File path:
integration-tests/salesforce/src/main/java/org/apache/camel/quarkus/component/salesforce/SalesforceRoutes.java
##########
@@ -16,13 +16,66 @@
*/
package org.apache.camel.quarkus.component.salesforce;
+import java.util.Optional;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Named;
+import javax.ws.rs.Produces;
+
+import io.quarkus.arc.Unremovable;
import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.salesforce.AuthenticationType;
+import org.apache.camel.component.salesforce.SalesforceComponent;
+import org.eclipse.microprofile.config.ConfigProvider;
+import org.eclipse.microprofile.config.inject.ConfigProperty;
+@ApplicationScoped
public class SalesforceRoutes extends RouteBuilder {
+ @ConfigProperty(name = "SALESFORCE_USERNAME", defaultValue = "username")
+ String username;
+
+ @ConfigProperty(name = "SALESFORCE_PASSWORD", defaultValue = "password")
+ String password;
+
+ @ConfigProperty(name = "SALESFORCE_CLIENTID", defaultValue = "clientId")
+ String clientId;
+
+ @ConfigProperty(name = "SALESFORCE_CLIENTSECRET", defaultValue =
"clientSecret")
+ String clientSecret;
+
+ @Produces
+ @ApplicationScoped
+ @Unremovable
+ @Named("salesforce")
Review comment:
All the fame belongs to @jamesnetherton from whom I learned all of this
recently :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]