org.apache.camel.component.stitch.StitchEndpointConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.stitch;
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 StitchEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
StitchEndpoint target = (StitchEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "connectionprovider":
case "connectionProvider": target.getConfiguration().setConnectionProvider(property(camelContext, reactor.netty.resources.ConnectionProvider.class, value)); return true;
case "httpclient":
case "httpClient": target.getConfiguration().setHttpClient(property(camelContext, reactor.netty.http.client.HttpClient.class, value)); return true;
case "keynames":
case "keyNames": target.getConfiguration().setKeyNames(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "region": target.getConfiguration().setRegion(property(camelContext, org.apache.camel.component.stitch.client.StitchRegion.class, value)); return true;
case "stitchclient":
case "stitchClient": target.getConfiguration().setStitchClient(property(camelContext, org.apache.camel.component.stitch.client.StitchClient.class, value)); return true;
case "stitchschema":
case "stitchSchema": target.getConfiguration().setStitchSchema(property(camelContext, org.apache.camel.component.stitch.client.models.StitchSchema.class, value)); return true;
case "token": target.getConfiguration().setToken(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@Override
public String[] getAutowiredNames() {
return new String[]{"connectionProvider", "httpClient", "stitchClient", "stitchSchema"};
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "connectionprovider":
case "connectionProvider": return reactor.netty.resources.ConnectionProvider.class;
case "httpclient":
case "httpClient": return reactor.netty.http.client.HttpClient.class;
case "keynames":
case "keyNames": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "region": return org.apache.camel.component.stitch.client.StitchRegion.class;
case "stitchclient":
case "stitchClient": return org.apache.camel.component.stitch.client.StitchClient.class;
case "stitchschema":
case "stitchSchema": return org.apache.camel.component.stitch.client.models.StitchSchema.class;
case "token": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
StitchEndpoint target = (StitchEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "connectionprovider":
case "connectionProvider": return target.getConfiguration().getConnectionProvider();
case "httpclient":
case "httpClient": return target.getConfiguration().getHttpClient();
case "keynames":
case "keyNames": return target.getConfiguration().getKeyNames();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "region": return target.getConfiguration().getRegion();
case "stitchclient":
case "stitchClient": return target.getConfiguration().getStitchClient();
case "stitchschema":
case "stitchSchema": return target.getConfiguration().getStitchSchema();
case "token": return target.getConfiguration().getToken();
default: return null;
}
}
}