org.apache.camel.component.sjms2.Sjms2EndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-sjms2 Show documentation
Show all versions of camel-sjms2 Show documentation
A pure Java JMS 2.0 Camel Component
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.sjms2;
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.component.sjms.SjmsEndpointConfigurer;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class Sjms2EndpointConfigurer extends SjmsEndpointConfigurer implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
Sjms2Endpoint target = (Sjms2Endpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "durable": target.setDurable(property(camelContext, boolean.class, value)); return true;
case "shared": target.setShared(property(camelContext, boolean.class, value)); return true;
case "subscriptionid":
case "subscriptionId": target.setSubscriptionId(property(camelContext, java.lang.String.class, value)); return true;
default: return super.configure(camelContext, obj, name, value, ignoreCase);
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "durable": return boolean.class;
case "shared": return boolean.class;
case "subscriptionid":
case "subscriptionId": return java.lang.String.class;
default: return super.getOptionType(name, ignoreCase);
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
Sjms2Endpoint target = (Sjms2Endpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "durable": return target.isDurable();
case "shared": return target.isShared();
case "subscriptionid":
case "subscriptionId": return target.getSubscriptionId();
default: return super.getOptionValue(obj, name, ignoreCase);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy