org.apache.camel.component.quartz.QuartzEndpointConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.quartz;
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!
*/
@SuppressWarnings("unchecked")
public class QuartzEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
QuartzEndpoint target = (QuartzEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autostartscheduler":
case "autoStartScheduler": target.setAutoStartScheduler(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "cron": target.setCron(property(camelContext, java.lang.String.class, value)); return true;
case "customcalendar":
case "customCalendar": target.setCustomCalendar(property(camelContext, org.quartz.Calendar.class, value)); return true;
case "deletejob":
case "deleteJob": target.setDeleteJob(property(camelContext, boolean.class, value)); return true;
case "durablejob":
case "durableJob": target.setDurableJob(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler":
case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern":
case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "ignoreexpirednextfiretime":
case "ignoreExpiredNextFireTime": target.setIgnoreExpiredNextFireTime(property(camelContext, boolean.class, value)); return true;
case "jobparameters":
case "jobParameters": target.setJobParameters(property(camelContext, java.util.Map.class, value)); return true;
case "pausejob":
case "pauseJob": target.setPauseJob(property(camelContext, boolean.class, value)); return true;
case "prefixjobnamewithendpointid":
case "prefixJobNameWithEndpointId": target.setPrefixJobNameWithEndpointId(property(camelContext, boolean.class, value)); return true;
case "recoverablejob":
case "recoverableJob": target.setRecoverableJob(property(camelContext, boolean.class, value)); return true;
case "stateful": target.setStateful(property(camelContext, boolean.class, value)); return true;
case "triggerparameters":
case "triggerParameters": target.setTriggerParameters(property(camelContext, java.util.Map.class, value)); return true;
case "triggerstartdelay":
case "triggerStartDelay": target.setTriggerStartDelay(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "usingfixedcamelcontextname":
case "usingFixedCamelContextName": target.setUsingFixedCamelContextName(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "autostartscheduler":
case "autoStartScheduler": return boolean.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "cron": return java.lang.String.class;
case "customcalendar":
case "customCalendar": return org.quartz.Calendar.class;
case "deletejob":
case "deleteJob": return boolean.class;
case "durablejob":
case "durableJob": return boolean.class;
case "exceptionhandler":
case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
case "exchangepattern":
case "exchangePattern": return org.apache.camel.ExchangePattern.class;
case "ignoreexpirednextfiretime":
case "ignoreExpiredNextFireTime": return boolean.class;
case "jobparameters":
case "jobParameters": return java.util.Map.class;
case "pausejob":
case "pauseJob": return boolean.class;
case "prefixjobnamewithendpointid":
case "prefixJobNameWithEndpointId": return boolean.class;
case "recoverablejob":
case "recoverableJob": return boolean.class;
case "stateful": return boolean.class;
case "triggerparameters":
case "triggerParameters": return java.util.Map.class;
case "triggerstartdelay":
case "triggerStartDelay": return long.class;
case "usingfixedcamelcontextname":
case "usingFixedCamelContextName": return boolean.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
QuartzEndpoint target = (QuartzEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autostartscheduler":
case "autoStartScheduler": return target.isAutoStartScheduler();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "cron": return target.getCron();
case "customcalendar":
case "customCalendar": return target.getCustomCalendar();
case "deletejob":
case "deleteJob": return target.isDeleteJob();
case "durablejob":
case "durableJob": return target.isDurableJob();
case "exceptionhandler":
case "exceptionHandler": return target.getExceptionHandler();
case "exchangepattern":
case "exchangePattern": return target.getExchangePattern();
case "ignoreexpirednextfiretime":
case "ignoreExpiredNextFireTime": return target.isIgnoreExpiredNextFireTime();
case "jobparameters":
case "jobParameters": return target.getJobParameters();
case "pausejob":
case "pauseJob": return target.isPauseJob();
case "prefixjobnamewithendpointid":
case "prefixJobNameWithEndpointId": return target.isPrefixJobNameWithEndpointId();
case "recoverablejob":
case "recoverableJob": return target.isRecoverableJob();
case "stateful": return target.isStateful();
case "triggerparameters":
case "triggerParameters": return target.getTriggerParameters();
case "triggerstartdelay":
case "triggerStartDelay": return target.getTriggerStartDelay();
case "usingfixedcamelcontextname":
case "usingFixedCamelContextName": return target.isUsingFixedCamelContextName();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "jobparameters":
case "jobParameters": return java.lang.Object.class;
case "triggerparameters":
case "triggerParameters": return java.lang.Object.class;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy