http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageAutoConfiguration.java b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageAutoConfiguration.java deleted file mode 100644 index 2c3e9fe..0000000 --- a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.jsonpath.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.jsonpath.JsonPathLanguage; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(JsonPathLanguageConfiguration.class) -public class JsonPathLanguageAutoConfiguration { - - @Bean(name = "jsonpath-language") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JsonPathLanguage.class) - public JsonPathLanguage configureJsonPathLanguage( - CamelContext camelContext, - JsonPathLanguageConfiguration configuration) throws Exception { - JsonPathLanguage language = new JsonPathLanguage(); - if (language instanceof CamelContextAware) { - ((CamelContextAware) language).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), language, parameters); - return language; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageConfiguration.java b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageConfiguration.java deleted file mode 100644 index 36ced8f..0000000 --- a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/springboot/JsonPathLanguageConfiguration.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.jsonpath.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For JSonPath expressions and predicates - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.language.jsonpath") -public class JsonPathLanguageConfiguration { - - /** - * Whether to suppress exceptions such as PathNotFoundException. - */ - private Boolean suppressExceptions = false; - /** - * Whether to allow in inlined simple exceptions in the json path expression - */ - private Boolean allowSimple = true; - /** - * Whether to trim the value to remove leading and trailing whitespaces and - * line breaks - */ - private Boolean trim = true; - - public Boolean getSuppressExceptions() { - return suppressExceptions; - } - - public void setSuppressExceptions(Boolean suppressExceptions) { - this.suppressExceptions = suppressExceptions; - } - - public Boolean getAllowSimple() { - return allowSimple; - } - - public void setAllowSimple(Boolean allowSimple) { - this.allowSimple = allowSimple; - } - - public Boolean getTrim() { - return trim; - } - - public void setTrim(Boolean trim) { - this.trim = trim; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jsonpath/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jsonpath/src/main/resources/META-INF/spring.factories b/components/camel-jsonpath/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 12720fc..0000000 --- a/components/camel-jsonpath/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.jsonpath.springboot.JsonPathLanguageAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentAutoConfiguration.java b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentAutoConfiguration.java deleted file mode 100644 index cccfab7..0000000 --- a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentAutoConfiguration.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.jt400.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jt400.Jt400Component; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(Jt400ComponentConfiguration.class) -public class Jt400ComponentAutoConfiguration { - - @Bean(name = "jt400-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(Jt400Component.class) - public Jt400Component configureJt400Component(CamelContext camelContext, - Jt400ComponentConfiguration configuration) throws Exception { - Jt400Component component = new Jt400Component(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentConfiguration.java b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentConfiguration.java deleted file mode 100644 index ac0cdc1..0000000 --- a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/springboot/Jt400ComponentConfiguration.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.jt400.springboot; - -import com.ibm.as400.access.AS400ConnectionPool; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The jt400 component allows you to exchanges messages with an AS/400 system - * using data queues or program call. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jt400") -public class Jt400ComponentConfiguration { - - /** - * Returns the default connection pool used by this component. - */ - private AS400ConnectionPool connectionPool; - - public AS400ConnectionPool getConnectionPool() { - return connectionPool; - } - - public void setConnectionPool(AS400ConnectionPool connectionPool) { - this.connectionPool = connectionPool; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jt400/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jt400/src/main/resources/META-INF/spring.factories b/components/camel-jt400/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3d0f165..0000000 --- a/components/camel-jt400/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.jt400.springboot.Jt400ComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageAutoConfiguration.java b/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageAutoConfiguration.java deleted file mode 100644 index 376e30e..0000000 --- a/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.juel.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.language.juel.JuelLanguage; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(JuelLanguageConfiguration.class) -public class JuelLanguageAutoConfiguration { - - @Bean(name = "el-language") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JuelLanguage.class) - public JuelLanguage configureJuelLanguage(CamelContext camelContext, - JuelLanguageConfiguration configuration) throws Exception { - JuelLanguage language = new JuelLanguage(); - if (language instanceof CamelContextAware) { - ((CamelContextAware) language).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), language, parameters); - return language; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageConfiguration.java b/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageConfiguration.java deleted file mode 100644 index 08ae2da..0000000 --- a/components/camel-juel/src/main/java/org/apache/camel/language/juel/springboot/JuelLanguageConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.juel.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For EL expressions and predicates - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.language.el") -public class JuelLanguageConfiguration { - - /** - * Whether to trim the value to remove leading and trailing whitespaces and - * line breaks - */ - private Boolean trim = true; - - public Boolean getTrim() { - return trim; - } - - public void setTrim(Boolean trim) { - this.trim = trim; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-juel/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-juel/src/main/resources/META-INF/spring.factories b/components/camel-juel/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4f44afa..0000000 --- a/components/camel-juel/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.language.juel.springboot.JuelLanguageAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageAutoConfiguration.java b/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageAutoConfiguration.java deleted file mode 100644 index a0e2c92..0000000 --- a/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.jxpath.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.language.jxpath.JXPathLanguage; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(JXPathLanguageConfiguration.class) -public class JXPathLanguageAutoConfiguration { - - @Bean(name = "jxpath-language") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JXPathLanguage.class) - public JXPathLanguage configureJXPathLanguage(CamelContext camelContext, - JXPathLanguageConfiguration configuration) throws Exception { - JXPathLanguage language = new JXPathLanguage(); - if (language instanceof CamelContextAware) { - ((CamelContextAware) language).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), language, parameters); - return language; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageConfiguration.java b/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageConfiguration.java deleted file mode 100644 index ca46049..0000000 --- a/components/camel-jxpath/src/main/java/org/apache/camel/language/jxpath/springboot/JXPathLanguageConfiguration.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.jxpath.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For JXPath expressions and predicates - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.language.jxpath") -public class JXPathLanguageConfiguration { - - /** - * Allows to turn lenient on the JXPathContext. When turned on this allows - * the JXPath expression to evaluate against expressions and message bodies - * which may be invalid / missing data. This option is by default false - */ - private Boolean lenient = false; - /** - * Whether to trim the value to remove leading and trailing whitespaces and - * line breaks - */ - private Boolean trim = true; - - public Boolean getLenient() { - return lenient; - } - - public void setLenient(Boolean lenient) { - this.lenient = lenient; - } - - public Boolean getTrim() { - return trim; - } - - public void setTrim(Boolean trim) { - this.trim = trim; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jxpath/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jxpath/src/main/resources/META-INF/spring.factories b/components/camel-jxpath/src/main/resources/META-INF/spring.factories deleted file mode 100644 index b6db2e5..0000000 --- a/components/camel-jxpath/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.language.jxpath.springboot.JXPathLanguageAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentAutoConfiguration.java b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentAutoConfiguration.java deleted file mode 100644 index b2f4075..0000000 --- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentAutoConfiguration.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.kafka.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.kafka.KafkaComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(KafkaComponentConfiguration.class) -public class KafkaComponentAutoConfiguration { - - @Bean(name = "kafka-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(KafkaComponent.class) - public KafkaComponent configureKafkaComponent(CamelContext camelContext, - KafkaComponentConfiguration configuration) throws Exception { - KafkaComponent component = new KafkaComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentConfiguration.java b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentConfiguration.java deleted file mode 100644 index 5460500..0000000 --- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/springboot/KafkaComponentConfiguration.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.kafka.springboot; - -import java.util.concurrent.ExecutorService; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The kafka component allows messages to be sent to (or consumed from) Apache - * Kafka brokers. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.kafka") -public class KafkaComponentConfiguration { - - /** - * To use a shared custom worker pool for continue routing Exchange after - * kafka server has acknowledge the message that was sent to it from - * KafkaProducer using asynchronous non-blocking processing. If using this - * option then you must handle the lifecycle of the thread pool to shut the - * pool down when no longer needed. - */ - private ExecutorService workerPool; - - public ExecutorService getWorkerPool() { - return workerPool; - } - - public void setWorkerPool(ExecutorService workerPool) { - this.workerPool = workerPool; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kafka/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-kafka/src/main/resources/META-INF/spring.factories b/components/camel-kafka/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3bf44f6..0000000 --- a/components/camel-kafka/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.kafka.springboot.KafkaComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentAutoConfiguration.java b/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentAutoConfiguration.java deleted file mode 100644 index 83adabb..0000000 --- a/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.kestrel.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.kestrel.KestrelComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(KestrelComponentConfiguration.class) -public class KestrelComponentAutoConfiguration { - - @Bean(name = "kestrel-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(KestrelComponent.class) - public KestrelComponent configureKestrelComponent( - CamelContext camelContext, - KestrelComponentConfiguration configuration) throws Exception { - KestrelComponent component = new KestrelComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentConfiguration.java b/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentConfiguration.java deleted file mode 100644 index bd8b802..0000000 --- a/components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/springboot/KestrelComponentConfiguration.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.kestrel.springboot; - -import org.apache.camel.component.kestrel.KestrelConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The kestrel component allows messages to be sent to (or consumed from) - * Kestrel brokers. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.kestrel") -public class KestrelComponentConfiguration { - - /** - * To use a shared configured configuration as base for creating new - * endpoints. - */ - private KestrelConfiguration configuration; - /** - * The addresses - */ - private String[] addresses; - /** - * The wait time in milliseconds - */ - private Integer waitTimeMs; - /** - * The number of concurrent consumers - */ - private Integer concurrentConsumers; - - public KestrelConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(KestrelConfiguration configuration) { - this.configuration = configuration; - } - - public String[] getAddresses() { - return addresses; - } - - public void setAddresses(String[] addresses) { - this.addresses = addresses; - } - - public Integer getWaitTimeMs() { - return waitTimeMs; - } - - public void setWaitTimeMs(Integer waitTimeMs) { - this.waitTimeMs = waitTimeMs; - } - - public Integer getConcurrentConsumers() { - return concurrentConsumers; - } - - public void setConcurrentConsumers(Integer concurrentConsumers) { - this.concurrentConsumers = concurrentConsumers; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-kestrel/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-kestrel/src/main/resources/META-INF/spring.factories b/components/camel-kestrel/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 534bb4c..0000000 --- a/components/camel-kestrel/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.kestrel.springboot.KestrelComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentAutoConfiguration.java b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentAutoConfiguration.java deleted file mode 100644 index 95a6077..0000000 --- a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.linkedin.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.linkedin.LinkedInComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(LinkedInComponentConfiguration.class) -public class LinkedInComponentAutoConfiguration { - - @Bean(name = "linkedin-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LinkedInComponent.class) - public LinkedInComponent configureLinkedInComponent( - CamelContext camelContext, - LinkedInComponentConfiguration configuration) throws Exception { - LinkedInComponent component = new LinkedInComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentConfiguration.java b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentConfiguration.java deleted file mode 100644 index c534089..0000000 --- a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/springboot/LinkedInComponentConfiguration.java +++ /dev/null @@ -1,187 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.linkedin.springboot; - -import java.util.Map; -import org.apache.camel.component.linkedin.LinkedInConfiguration; -import org.apache.camel.component.linkedin.api.OAuthScope; -import org.apache.camel.component.linkedin.api.OAuthSecureStorage; -import org.apache.camel.component.linkedin.internal.LinkedInApiName; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The linkedin component is uses for retrieving LinkedIn user profiles - * connections companies groups posts etc. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.linkedin") -public class LinkedInComponentConfiguration { - - /** - * To use the shared configuration - */ - private LinkedInConfiguration configuration; - /** - * What kind of operation to perform - */ - private LinkedInApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * LinkedIn user account name MUST be provided - */ - private String userName; - /** - * LinkedIn account password - */ - private String userPassword; - /** - * Callback interface for providing an OAuth token or to store the token - * generated by the component. The callback should return null on the first - * call and then save the created token in the saveToken() callback. If the - * callback returns null the first time a userPassword MUST be provided - */ - private OAuthSecureStorage secureStorage; - /** - * LinkedIn application client ID - */ - private String clientId; - /** - * LinkedIn application client secret - */ - private String clientSecret; - /** - * List of LinkedIn scopes as specified at - * https://developer.linkedin.com/documents/authenticationgranting - */ - private OAuthScope[] scopes; - /** - * Application redirect URI although the component never redirects to this - * page to avoid having to have a functioning redirect server. So for - * testing one could use https://localhost - */ - private String redirectUri; - /** - * Custom HTTP params for example proxy host and port use constants from - * AllClientPNames - */ - private Map<String, Object> httpParams; - /** - * Flag to enable/disable lazy OAuth default is true. when enabled OAuth - * token retrieval or generation is not done until the first REST call - */ - private Boolean lazyAuth; - - public LinkedInConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(LinkedInConfiguration configuration) { - this.configuration = configuration; - } - - public LinkedInApiName getApiName() { - return apiName; - } - - public void setApiName(LinkedInApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public String getUserPassword() { - return userPassword; - } - - public void setUserPassword(String userPassword) { - this.userPassword = userPassword; - } - - public OAuthSecureStorage getSecureStorage() { - return secureStorage; - } - - public void setSecureStorage(OAuthSecureStorage secureStorage) { - this.secureStorage = secureStorage; - } - - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public String getClientSecret() { - return clientSecret; - } - - public void setClientSecret(String clientSecret) { - this.clientSecret = clientSecret; - } - - public OAuthScope[] getScopes() { - return scopes; - } - - public void setScopes(OAuthScope[] scopes) { - this.scopes = scopes; - } - - public String getRedirectUri() { - return redirectUri; - } - - public void setRedirectUri(String redirectUri) { - this.redirectUri = redirectUri; - } - - public Map<String, Object> getHttpParams() { - return httpParams; - } - - public void setHttpParams(Map<String, Object> httpParams) { - this.httpParams = httpParams; - } - - public Boolean getLazyAuth() { - return lazyAuth; - } - - public void setLazyAuth(Boolean lazyAuth) { - this.lazyAuth = lazyAuth; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-linkedin/camel-linkedin-component/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/resources/META-INF/spring.factories b/components/camel-linkedin/camel-linkedin-component/src/main/resources/META-INF/spring.factories deleted file mode 100644 index fde340f..0000000 --- a/components/camel-linkedin/camel-linkedin-component/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.linkedin.springboot.LinkedInComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentAutoConfiguration.java b/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentAutoConfiguration.java deleted file mode 100644 index f4517b0..0000000 --- a/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentAutoConfiguration.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.lucene.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.lucene.LuceneComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(LuceneComponentConfiguration.class) -public class LuceneComponentAutoConfiguration { - - @Bean(name = "lucene-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LuceneComponent.class) - public LuceneComponent configureLuceneComponent(CamelContext camelContext, - LuceneComponentConfiguration configuration) throws Exception { - LuceneComponent component = new LuceneComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentConfiguration.java b/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentConfiguration.java deleted file mode 100644 index 788a695..0000000 --- a/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/springboot/LuceneComponentConfiguration.java +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.lucene.springboot; - -import java.io.File; -import org.apache.camel.component.lucene.LuceneConfiguration; -import org.apache.camel.component.lucene.LuceneOperation; -import org.apache.lucene.analysis.Analyzer; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * To insert or query from Apache Lucene databases. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.lucene") -public class LuceneComponentConfiguration { - - /** - * To use a shared lucene configuration. Properties of the shared - * configuration can also be set individually. - */ - private LuceneConfiguration config; - /** - * The URL to the lucene server - */ - private String host; - /** - * Operation to do such as insert or query. - */ - private LuceneOperation operation; - /** - * An optional directory containing files to be used to be analyzed and - * added to the index at producer startup. - */ - private File sourceDirectory; - /** - * A file system directory in which index files are created upon analysis of - * the document by the specified analyzer - */ - private File indexDirectory; - /** - * An Analyzer builds TokenStreams which analyze text. It thus represents a - * policy for extracting index terms from text. The value for analyzer can - * be any class that extends the abstract class - * org.apache.lucene.analysis.Analyzer. Lucene also offers a rich set of - * analyzers out of the box - */ - private Analyzer analyzer; - /** - * An integer value that limits the result set of the search operation - */ - private Integer maxHits; - - public LuceneConfiguration getConfig() { - return config; - } - - public void setConfig(LuceneConfiguration config) { - this.config = config; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public LuceneOperation getOperation() { - return operation; - } - - public void setOperation(LuceneOperation operation) { - this.operation = operation; - } - - public File getSourceDirectory() { - return sourceDirectory; - } - - public void setSourceDirectory(File sourceDirectory) { - this.sourceDirectory = sourceDirectory; - } - - public File getIndexDirectory() { - return indexDirectory; - } - - public void setIndexDirectory(File indexDirectory) { - this.indexDirectory = indexDirectory; - } - - public Analyzer getAnalyzer() { - return analyzer; - } - - public void setAnalyzer(Analyzer analyzer) { - this.analyzer = analyzer; - } - - public Integer getMaxHits() { - return maxHits; - } - - public void setMaxHits(Integer maxHits) { - this.maxHits = maxHits; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lucene/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-lucene/src/main/resources/META-INF/spring.factories b/components/camel-lucene/src/main/resources/META-INF/spring.factories deleted file mode 100644 index bc2eef7..0000000 --- a/components/camel-lucene/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.lucene.springboot.LuceneComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentAutoConfiguration.java b/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentAutoConfiguration.java deleted file mode 100644 index 009d941..0000000 --- a/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.lumberjack.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.lumberjack.LumberjackComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(LumberjackComponentConfiguration.class) -public class LumberjackComponentAutoConfiguration { - - @Bean(name = "lumberjack-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LumberjackComponent.class) - public LumberjackComponent configureLumberjackComponent( - CamelContext camelContext, - LumberjackComponentConfiguration configuration) throws Exception { - LumberjackComponent component = new LumberjackComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentConfiguration.java b/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentConfiguration.java deleted file mode 100644 index e3dc61d..0000000 --- a/components/camel-lumberjack/src/main/java/org/apache/camel/component/lumberjack/springboot/LumberjackComponentConfiguration.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.lumberjack.springboot; - -import org.apache.camel.util.jsse.SSLContextParameters; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Lumberjack log streaming component - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.lumberjack") -public class LumberjackComponentConfiguration { - - /** - * Sets the default SSL configuration to use for all the endpoints. You can - * also configure it directly at the endpoint level. - */ - private SSLContextParameters sslContextParameters; - - public SSLContextParameters getSslContextParameters() { - return sslContextParameters; - } - - public void setSslContextParameters( - SSLContextParameters sslContextParameters) { - this.sslContextParameters = sslContextParameters; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lumberjack/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-lumberjack/src/main/resources/META-INF/spring.factories b/components/camel-lumberjack/src/main/resources/META-INF/spring.factories deleted file mode 100644 index e006396..0000000 --- a/components/camel-lumberjack/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.lumberjack.springboot.LumberjackComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java deleted file mode 100644 index 46ba06a..0000000 --- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.lzf.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.lzf.LZFDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(LZFDataFormatConfiguration.class) -public class LZFDataFormatAutoConfiguration { - - @Bean(name = "lzf-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LZFDataFormat.class) - public LZFDataFormat configureLZFDataFormat(CamelContext camelContext, - LZFDataFormatConfiguration configuration) throws Exception { - LZFDataFormat dataformat = new LZFDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java deleted file mode 100644 index 14eb87b..0000000 --- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.lzf.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel LZF support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.lzf") -public class LZFDataFormatConfiguration { - - /** - * Enable encoding (compress) using multiple processing cores. - */ - private Boolean usingParallelCompression = false; - - public Boolean getUsingParallelCompression() { - return usingParallelCompression; - } - - public void setUsingParallelCompression(Boolean usingParallelCompression) { - this.usingParallelCompression = usingParallelCompression; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-lzf/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-lzf/src/main/resources/META-INF/spring.factories b/components/camel-lzf/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5241e09..0000000 --- a/components/camel-lzf/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.lzf.springboot.LZFDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentAutoConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentAutoConfiguration.java deleted file mode 100644 index 4746a0a..0000000 --- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.mail.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.mail.MailComponent; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(MailComponentConfiguration.class) -public class MailComponentAutoConfiguration { - - @Bean(name = {"imap-component", "imaps-component", "pop3-component", - "pop3s-component", "smtp-component", "smtps-component"}) - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(MailComponent.class) - public MailComponent configureMailComponent(CamelContext camelContext, - MailComponentConfiguration configuration) throws Exception { - MailComponent component = new MailComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file