org.apache.camel.component.zookeepermaster.MasterComponentConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-zookeeper-master Show documentation
Show all versions of camel-zookeeper-master Show documentation
Camel Zookeeper Master Support
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.zookeepermaster;
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 MasterComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
MasterComponent target = (MasterComponent) 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 "containeridfactory":
case "containerIdFactory": target.setContainerIdFactory(property(camelContext, org.apache.camel.component.zookeepermaster.ContainerIdFactory.class, value)); return true;
case "curator": target.setCurator(property(camelContext, org.apache.curator.framework.CuratorFramework.class, value)); return true;
case "maximumconnectiontimeout":
case "maximumConnectionTimeout": target.setMaximumConnectionTimeout(property(camelContext, int.class, value)); return true;
case "zkroot":
case "zkRoot": target.setZkRoot(property(camelContext, java.lang.String.class, value)); return true;
case "zookeeperpassword":
case "zooKeeperPassword": target.setZooKeeperPassword(property(camelContext, java.lang.String.class, value)); return true;
case "zookeeperurl":
case "zooKeeperUrl": target.setZooKeeperUrl(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 "autowiredenabled":
case "autowiredEnabled": return boolean.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "containeridfactory":
case "containerIdFactory": return org.apache.camel.component.zookeepermaster.ContainerIdFactory.class;
case "curator": return org.apache.curator.framework.CuratorFramework.class;
case "maximumconnectiontimeout":
case "maximumConnectionTimeout": return int.class;
case "zkroot":
case "zkRoot": return java.lang.String.class;
case "zookeeperpassword":
case "zooKeeperPassword": return java.lang.String.class;
case "zookeeperurl":
case "zooKeeperUrl": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
MasterComponent target = (MasterComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "containeridfactory":
case "containerIdFactory": return target.getContainerIdFactory();
case "curator": return target.getCurator();
case "maximumconnectiontimeout":
case "maximumConnectionTimeout": return target.getMaximumConnectionTimeout();
case "zkroot":
case "zkRoot": return target.getZkRoot();
case "zookeeperpassword":
case "zooKeeperPassword": return target.getZooKeeperPassword();
case "zookeeperurl":
case "zooKeeperUrl": return target.getZooKeeperUrl();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy