org.apache.camel.component.controlbus.ControlBusEndpointConfigurer Maven / Gradle / Ivy
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.controlbus;
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 ControlBusEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
ControlBusEndpoint target = (ControlBusEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": target.setAction(property(camelContext, java.lang.String.class, value)); return true;
case "async": target.setAsync(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "logginglevel":
case "loggingLevel": target.setLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
case "restartdelay":
case "restartDelay": target.setRestartDelay(property(camelContext, int.class, value)); return true;
case "routeid":
case "routeId": target.setRouteId(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": return java.lang.String.class;
case "async": return boolean.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "logginglevel":
case "loggingLevel": return org.apache.camel.LoggingLevel.class;
case "restartdelay":
case "restartDelay": return int.class;
case "routeid":
case "routeId": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
ControlBusEndpoint target = (ControlBusEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": return target.getAction();
case "async": return target.isAsync();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "logginglevel":
case "loggingLevel": return target.getLoggingLevel();
case "restartdelay":
case "restartDelay": return target.getRestartDelay();
case "routeid":
case "routeId": return target.getRouteId();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy