org.apache.camel.component.spring.integration.SpringIntegrationEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-spring-integration Show documentation
Show all versions of camel-spring-integration Show documentation
Camel Spring Integration support
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.spring.integration;
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 SpringIntegrationEndpointConfigurer 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 "inputChannel": ((SpringIntegrationEndpoint) endpoint).setInputChannel(property(camelContext, java.lang.String.class, value)); return true;
case "outputChannel": ((SpringIntegrationEndpoint) endpoint).setOutputChannel(property(camelContext, java.lang.String.class, value)); return true;
case "inOut": ((SpringIntegrationEndpoint) endpoint).setInOut(property(camelContext, boolean.class, value)); return true;
case "lazyStartProducer": ((SpringIntegrationEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((SpringIntegrationEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((SpringIntegrationEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((SpringIntegrationEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((SpringIntegrationEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((SpringIntegrationEndpoint) 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 "inputchannel": ((SpringIntegrationEndpoint) endpoint).setInputChannel(property(camelContext, java.lang.String.class, value)); return true;
case "outputchannel": ((SpringIntegrationEndpoint) endpoint).setOutputChannel(property(camelContext, java.lang.String.class, value)); return true;
case "inout": ((SpringIntegrationEndpoint) endpoint).setInOut(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer": ((SpringIntegrationEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((SpringIntegrationEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((SpringIntegrationEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((SpringIntegrationEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((SpringIntegrationEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((SpringIntegrationEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy