org.apache.camel.impl.engine.DurationRoutePolicyFactoryConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-base-engine Show documentation
Show all versions of camel-base-engine Show documentation
The Base Engine Camel Framework
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.impl.engine;
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.impl.engine.DurationRoutePolicyFactory;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class DurationRoutePolicyFactoryConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
org.apache.camel.impl.engine.DurationRoutePolicyFactory target = (org.apache.camel.impl.engine.DurationRoutePolicyFactory) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": target.setAction(property(camelContext, org.apache.camel.impl.engine.DurationRoutePolicy.Action.class, value)); return true;
case "fromrouteid":
case "fromRouteId": target.setFromRouteId(property(camelContext, java.lang.String.class, value)); return true;
case "maxmessages":
case "maxMessages": target.setMaxMessages(property(camelContext, int.class, value)); return true;
case "maxseconds":
case "maxSeconds": target.setMaxSeconds(property(camelContext, int.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": return org.apache.camel.impl.engine.DurationRoutePolicy.Action.class;
case "fromrouteid":
case "fromRouteId": return java.lang.String.class;
case "maxmessages":
case "maxMessages": return int.class;
case "maxseconds":
case "maxSeconds": return int.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
org.apache.camel.impl.engine.DurationRoutePolicyFactory target = (org.apache.camel.impl.engine.DurationRoutePolicyFactory) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "action": return target.getAction();
case "fromrouteid":
case "fromRouteId": return target.getFromRouteId();
case "maxmessages":
case "maxMessages": return target.getMaxMessages();
case "maxseconds":
case "maxSeconds": return target.getMaxSeconds();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy