Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.seda;
import javax.annotation.processing.Generated;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class SedaComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
SedaComponent target = (SedaComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "concurrentconsumers":
case "concurrentConsumers": target.setConcurrentConsumers(property(camelContext, int.class, value)); return true;
case "defaultblockwhenfull":
case "defaultBlockWhenFull": target.setDefaultBlockWhenFull(property(camelContext, boolean.class, value)); return true;
case "defaultdiscardwhenfull":
case "defaultDiscardWhenFull": target.setDefaultDiscardWhenFull(property(camelContext, boolean.class, value)); return true;
case "defaultoffertimeout":
case "defaultOfferTimeout": target.setDefaultOfferTimeout(property(camelContext, long.class, value)); return true;
case "defaultpolltimeout":
case "defaultPollTimeout": target.setDefaultPollTimeout(property(camelContext, int.class, value)); return true;
case "defaultqueuefactory":
case "defaultQueueFactory": target.setDefaultQueueFactory(property(camelContext, org.apache.camel.component.seda.BlockingQueueFactory.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "queuesize":
case "queueSize": target.setQueueSize(property(camelContext, int.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": return boolean.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "concurrentconsumers":
case "concurrentConsumers": return int.class;
case "defaultblockwhenfull":
case "defaultBlockWhenFull": return boolean.class;
case "defaultdiscardwhenfull":
case "defaultDiscardWhenFull": return boolean.class;
case "defaultoffertimeout":
case "defaultOfferTimeout": return long.class;
case "defaultpolltimeout":
case "defaultPollTimeout": return int.class;
case "defaultqueuefactory":
case "defaultQueueFactory": return org.apache.camel.component.seda.BlockingQueueFactory.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "queuesize":
case "queueSize": return int.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
SedaComponent target = (SedaComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "concurrentconsumers":
case "concurrentConsumers": return target.getConcurrentConsumers();
case "defaultblockwhenfull":
case "defaultBlockWhenFull": return target.isDefaultBlockWhenFull();
case "defaultdiscardwhenfull":
case "defaultDiscardWhenFull": return target.isDefaultDiscardWhenFull();
case "defaultoffertimeout":
case "defaultOfferTimeout": return target.getDefaultOfferTimeout();
case "defaultpolltimeout":
case "defaultPollTimeout": return target.getDefaultPollTimeout();
case "defaultqueuefactory":
case "defaultQueueFactory": return target.getDefaultQueueFactory();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "queuesize":
case "queueSize": return target.getQueueSize();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "defaultqueuefactory":
case "defaultQueueFactory": return org.apache.camel.Exchange.class;
default: return null;
}
}
}