
org.apache.camel.component.google.pubsub.GooglePubsubEndpointConfigurer Maven / Gradle / Ivy
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.google.pubsub;
import java.util.HashMap;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Source code generated by org.apache.camel:apt
*/
@SuppressWarnings("unchecked")
public class GooglePubsubEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object endpoint, String name, Object value, boolean ignoreCase) {
if (ignoreCase) {
return doConfigureIgnoreCase(camelContext, endpoint, name, value);
} else {
return doConfigure(camelContext, endpoint, name, value);
}
}
private static boolean doConfigure(CamelContext camelContext, Object endpoint, String name, Object value) {
switch (name) {
case "loggerId": ((GooglePubsubEndpoint) endpoint).setLoggerId(property(camelContext, java.lang.String.class, value)); return true;
case "concurrentConsumers": ((GooglePubsubEndpoint) endpoint).setConcurrentConsumers(property(camelContext, java.lang.Integer.class, value)); return true;
case "maxMessagesPerPoll": ((GooglePubsubEndpoint) endpoint).setMaxMessagesPerPoll(property(camelContext, java.lang.Integer.class, value)); return true;
case "connectionFactory": ((GooglePubsubEndpoint) endpoint).setConnectionFactory(property(camelContext, org.apache.camel.component.google.pubsub.GooglePubsubConnectionFactory.class, value)); return true;
case "ackMode": ((GooglePubsubEndpoint) endpoint).setAckMode(property(camelContext, org.apache.camel.component.google.pubsub.GooglePubsubConstants.AckMode.class, value)); return true;
case "lazyStartProducer": ((GooglePubsubEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((GooglePubsubEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((GooglePubsubEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((GooglePubsubEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((GooglePubsubEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((GooglePubsubEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object endpoint, String name, Object value) {
switch (name.toLowerCase()) {
case "loggerid": ((GooglePubsubEndpoint) endpoint).setLoggerId(property(camelContext, java.lang.String.class, value)); return true;
case "concurrentconsumers": ((GooglePubsubEndpoint) endpoint).setConcurrentConsumers(property(camelContext, java.lang.Integer.class, value)); return true;
case "maxmessagesperpoll": ((GooglePubsubEndpoint) endpoint).setMaxMessagesPerPoll(property(camelContext, java.lang.Integer.class, value)); return true;
case "connectionfactory": ((GooglePubsubEndpoint) endpoint).setConnectionFactory(property(camelContext, org.apache.camel.component.google.pubsub.GooglePubsubConnectionFactory.class, value)); return true;
case "ackmode": ((GooglePubsubEndpoint) endpoint).setAckMode(property(camelContext, org.apache.camel.component.google.pubsub.GooglePubsubConstants.AckMode.class, value)); return true;
case "lazystartproducer": ((GooglePubsubEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((GooglePubsubEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((GooglePubsubEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((GooglePubsubEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((GooglePubsubEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((GooglePubsubEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy