http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java deleted file mode 100644 index 2dccf9d..0000000 --- a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java +++ /dev/null @@ -1,68 +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.base64.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Base64 data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.base64") -public class Base64DataFormatConfiguration { - - /** - * To specific a maximum line length for the encoded data. By default 76 is - * used. - */ - private Integer lineLength = 76; - /** - * The line separators to use. By default \r\n is used. - */ - private String lineSeparator; - /** - * Instead of emitting '' and '/' we emit '-' and '_' respectively. urlSafe - * is only applied to encode operations. Decoding seamlessly handles both - * modes. Is by default false. - */ - private Boolean urlSafe = false; - - public Integer getLineLength() { - return lineLength; - } - - public void setLineLength(Integer lineLength) { - this.lineLength = lineLength; - } - - public String getLineSeparator() { - return lineSeparator; - } - - public void setLineSeparator(String lineSeparator) { - this.lineSeparator = lineSeparator; - } - - public Boolean getUrlSafe() { - return urlSafe; - } - - public void setUrlSafe(Boolean urlSafe) { - this.urlSafe = urlSafe; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-base64/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-base64/src/main/resources/META-INF/spring.factories b/components/camel-base64/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9985339..0000000 --- a/components/camel-base64/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.base64.springboot.Base64DataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.java deleted file mode 100644 index 00121a8..0000000 --- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatAutoConfiguration.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.dataformat.beanio.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.beanio.BeanIODataFormat; -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(BeanIODataFormatConfiguration.class) -public class BeanIODataFormatAutoConfiguration { - - @Bean(name = "beanio-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BeanIODataFormat.class) - public BeanIODataFormat configureBeanIODataFormat( - CamelContext camelContext, - BeanIODataFormatConfiguration configuration) throws Exception { - BeanIODataFormat dataformat = new BeanIODataFormat(); - 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-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java deleted file mode 100644 index 8fc2724..0000000 --- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java +++ /dev/null @@ -1,103 +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.beanio.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel BeanIO data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.beanio") -public class BeanIODataFormatConfiguration { - - /** - * The BeanIO mapping file. Is by default loaded from the classpath. You can - * prefix with file: http: or classpath: to denote from where to load the - * mapping file. - */ - private String mapping; - /** - * The name of the stream to use. - */ - private String streamName; - /** - * Whether to ignore unidentified records. - */ - private Boolean ignoreUnidentifiedRecords = false; - /** - * Whether to ignore unexpected records. - */ - private Boolean ignoreUnexpectedRecords = false; - /** - * Whether to ignore invalid records. - */ - private Boolean ignoreInvalidRecords = false; - /** - * The charset to use. Is by default the JVM platform default charset. - */ - private String encoding; - - public String getMapping() { - return mapping; - } - - public void setMapping(String mapping) { - this.mapping = mapping; - } - - public String getStreamName() { - return streamName; - } - - public void setStreamName(String streamName) { - this.streamName = streamName; - } - - public Boolean getIgnoreUnidentifiedRecords() { - return ignoreUnidentifiedRecords; - } - - public void setIgnoreUnidentifiedRecords(Boolean ignoreUnidentifiedRecords) { - this.ignoreUnidentifiedRecords = ignoreUnidentifiedRecords; - } - - public Boolean getIgnoreUnexpectedRecords() { - return ignoreUnexpectedRecords; - } - - public void setIgnoreUnexpectedRecords(Boolean ignoreUnexpectedRecords) { - this.ignoreUnexpectedRecords = ignoreUnexpectedRecords; - } - - public Boolean getIgnoreInvalidRecords() { - return ignoreInvalidRecords; - } - - public void setIgnoreInvalidRecords(Boolean ignoreInvalidRecords) { - this.ignoreInvalidRecords = ignoreInvalidRecords; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-beanio/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-beanio/src/main/resources/META-INF/spring.factories b/components/camel-beanio/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9139cce..0000000 --- a/components/camel-beanio/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.beanio.springboot.BeanIODataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java b/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.java deleted file mode 100644 index d8007c3..0000000 --- a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentAutoConfiguration.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.beanstalk.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.beanstalk.BeanstalkComponent; -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(BeanstalkComponentConfiguration.class) -public class BeanstalkComponentAutoConfiguration { - - @Bean(name = "beanstalk-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BeanstalkComponent.class) - public BeanstalkComponent configureBeanstalkComponent( - CamelContext camelContext, - BeanstalkComponentConfiguration configuration) throws Exception { - BeanstalkComponent component = new BeanstalkComponent(); - 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-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentConfiguration.java b/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentConfiguration.java deleted file mode 100644 index d0e4599..0000000 --- a/components/camel-beanstalk/src/main/java/org/apache/camel/component/beanstalk/springboot/BeanstalkComponentConfiguration.java +++ /dev/null @@ -1,46 +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.beanstalk.springboot; - -import org.apache.camel.component.beanstalk.ConnectionSettingsFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The beanstalk component is used for job retrieval and post-processing of - * Beanstalk jobs. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.beanstalk") -public class BeanstalkComponentConfiguration { - - /** - * Custom ConnectionSettingsFactory. Specify which ConnectionSettingsFactory - * to use to make connections to Beanstalkd. Especially useful for unit - * testing without beanstalkd daemon (you can mock ConnectionSettings) - */ - private ConnectionSettingsFactory connectionSettingsFactory; - - public ConnectionSettingsFactory getConnectionSettingsFactory() { - return connectionSettingsFactory; - } - - public void setConnectionSettingsFactory( - ConnectionSettingsFactory connectionSettingsFactory) { - this.connectionSettingsFactory = connectionSettingsFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-beanstalk/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-beanstalk/src/main/resources/META-INF/spring.factories b/components/camel-beanstalk/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9d05330..0000000 --- a/components/camel-beanstalk/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.beanstalk.springboot.BeanstalkComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.java deleted file mode 100644 index 5126a88..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatAutoConfiguration.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.dataformat.bindy.csv.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat; -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(BindyCsvDataFormatConfiguration.class) -public class BindyCsvDataFormatAutoConfiguration { - - @Bean(name = "bindy-csv-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BindyCsvDataFormat.class) - public BindyCsvDataFormat configureBindyCsvDataFormat( - CamelContext camelContext, - BindyCsvDataFormatConfiguration configuration) throws Exception { - BindyCsvDataFormat dataformat = new BindyCsvDataFormat(); - 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-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java deleted file mode 100644 index b249e17..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/springboot/BindyCsvDataFormatConfiguration.java +++ /dev/null @@ -1,68 +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.bindy.csv.springboot; - -import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat; -import org.apache.camel.model.dataformat.BindyType; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Bindy data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.bindy-csv") -public class BindyCsvDataFormatConfiguration { - - /** - * Whether to use csv fixed or key value pairs mode. - */ - private BindyType type = BindyType.Csv; - /** - * Name of model class to use. - */ - private String classType; - /** - * To configure a default locale to use such as us for united states. To use - * the JVM platform default locale then use the name default - */ - private String locale; - - public BindyType getType() { - return type; - } - - public void setType(BindyType type) { - this.type = type; - } - - public String getClassType() { - return classType; - } - - public void setClassType(String classType) { - this.classType = classType; - } - - public String getLocale() { - return locale; - } - - public void setLocale(String locale) { - this.locale = locale; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.java deleted file mode 100644 index b29c731..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatAutoConfiguration.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.dataformat.bindy.fixed.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat; -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(BindyFixedLengthDataFormatConfiguration.class) -public class BindyFixedLengthDataFormatAutoConfiguration { - - @Bean(name = "bindy-fixed-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BindyFixedLengthDataFormat.class) - public BindyFixedLengthDataFormat configureBindyFixedLengthDataFormat( - CamelContext camelContext, - BindyFixedLengthDataFormatConfiguration configuration) - throws Exception { - BindyFixedLengthDataFormat dataformat = new BindyFixedLengthDataFormat(); - 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-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java deleted file mode 100644 index 8931068..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/fixed/springboot/BindyFixedLengthDataFormatConfiguration.java +++ /dev/null @@ -1,68 +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.bindy.fixed.springboot; - -import org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat; -import org.apache.camel.model.dataformat.BindyType; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Bindy data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.bindy-fixed") -public class BindyFixedLengthDataFormatConfiguration { - - /** - * Whether to use csv fixed or key value pairs mode. - */ - private BindyType type = BindyType.Fixed; - /** - * Name of model class to use. - */ - private String classType; - /** - * To configure a default locale to use such as us for united states. To use - * the JVM platform default locale then use the name default - */ - private String locale; - - public BindyType getType() { - return type; - } - - public void setType(BindyType type) { - this.type = type; - } - - public String getClassType() { - return classType; - } - - public void setClassType(String classType) { - this.classType = classType; - } - - public String getLocale() { - return locale; - } - - public void setLocale(String locale) { - this.locale = locale; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.java deleted file mode 100644 index e2a986f..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatAutoConfiguration.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.dataformat.bindy.kvp.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat; -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(BindyKeyValuePairDataFormatConfiguration.class) -public class BindyKeyValuePairDataFormatAutoConfiguration { - - @Bean(name = "bindy-kvp-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BindyKeyValuePairDataFormat.class) - public BindyKeyValuePairDataFormat configureBindyKeyValuePairDataFormat( - CamelContext camelContext, - BindyKeyValuePairDataFormatConfiguration configuration) - throws Exception { - BindyKeyValuePairDataFormat dataformat = new BindyKeyValuePairDataFormat(); - 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-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java deleted file mode 100644 index b30ed96..0000000 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/kvp/springboot/BindyKeyValuePairDataFormatConfiguration.java +++ /dev/null @@ -1,68 +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.bindy.kvp.springboot; - -import org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat; -import org.apache.camel.model.dataformat.BindyType; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Bindy data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.bindy-kvp") -public class BindyKeyValuePairDataFormatConfiguration { - - /** - * Whether to use csv fixed or key value pairs mode. - */ - private BindyType type = BindyType.KeyValue; - /** - * Name of model class to use. - */ - private String classType; - /** - * To configure a default locale to use such as us for united states. To use - * the JVM platform default locale then use the name default - */ - private String locale; - - public BindyType getType() { - return type; - } - - public void setType(BindyType type) { - this.type = type; - } - - public String getClassType() { - return classType; - } - - public void setClassType(String classType) { - this.classType = classType; - } - - public String getLocale() { - return locale; - } - - public void setLocale(String locale) { - this.locale = locale; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-bindy/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/resources/META-INF/spring.factories b/components/camel-bindy/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 140c18c..0000000 --- a/components/camel-bindy/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,23 +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.bindy.csv.springboot.BindyCsvDataFormatAutoConfiguration,\ -org.apache.camel.dataformat.bindy.fixed.springboot.BindyFixedLengthDataFormatAutoConfiguration,\ -org.apache.camel.dataformat.bindy.kvp.springboot.BindyKeyValuePairDataFormatAutoConfiguration - - http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.java deleted file mode 100644 index 36afa5b..0000000 --- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatAutoConfiguration.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.component.boon.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.boon.BoonDataFormat; -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(BoonDataFormatConfiguration.class) -public class BoonDataFormatAutoConfiguration { - - @Bean(name = "boon-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BoonDataFormat.class) - public BoonDataFormat configureBoonDataFormat(CamelContext camelContext, - BoonDataFormatConfiguration configuration) throws Exception { - BoonDataFormat dataformat = new BoonDataFormat(); - 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-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java deleted file mode 100644 index 0763000..0000000 --- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java +++ /dev/null @@ -1,53 +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.boon.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Boon support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.boon") -public class BoonDataFormatConfiguration { - - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * To unarmshal to a List of Map or a List of Pojo. - */ - private Boolean useList = false; - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public Boolean getUseList() { - return useList; - } - - public void setUseList(Boolean useList) { - this.useList = useList; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-boon/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-boon/src/main/resources/META-INF/spring.factories b/components/camel-boon/src/main/resources/META-INF/spring.factories deleted file mode 100644 index cbb2c73..0000000 --- a/components/camel-boon/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.boon.springboot.BoonDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentAutoConfiguration.java b/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentAutoConfiguration.java deleted file mode 100644 index d738c9e..0000000 --- a/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentAutoConfiguration.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.box.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.box.BoxComponent; -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(BoxComponentConfiguration.class) -public class BoxComponentAutoConfiguration { - - @Bean(name = "box-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BoxComponent.class) - public BoxComponent configureBoxComponent(CamelContext camelContext, - BoxComponentConfiguration configuration) throws Exception { - BoxComponent component = new BoxComponent(); - 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-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentConfiguration.java b/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentConfiguration.java deleted file mode 100644 index 2f84faa..0000000 --- a/components/camel-box/src/main/java/org/apache/camel/component/box/springboot/BoxComponentConfiguration.java +++ /dev/null @@ -1,257 +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.box.springboot; - -import java.util.Map; -import com.box.boxjavalibv2.BoxConnectionManagerBuilder; -import com.box.boxjavalibv2.IBoxConfig; -import com.box.boxjavalibv2.authorization.IAuthSecureStorage; -import com.box.boxjavalibv2.authorization.OAuthRefreshListener; -import org.apache.camel.component.box.BoxConfiguration; -import org.apache.camel.component.box.internal.BoxApiName; -import org.apache.camel.util.jsse.SSLContextParameters; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For uploading downloading and managing files folders groups collaborations - * etc on box DOT com. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.box") -public class BoxComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private BoxConfiguration configuration; - /** - * What kind of operation to perform - */ - private BoxApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * Box application client ID - */ - private String clientId; - /** - * Box application client secret - */ - private String clientSecret; - /** - * OAuth Secure Storage callback can be used to provide and or save OAuth - * tokens. The callback may return null on first call to allow the component - * to login and authorize application and obtain an OAuth token which can - * then be saved in the secure storage. For the component to be able to - * create a token automatically a user password must be provided. - */ - private IAuthSecureStorage authSecureStorage; - /** - * Box user name MUST be provided - */ - private String userName; - /** - * Box user password MUST be provided if authSecureStorage is not set or - * returns null on first call - */ - private String userPassword; - /** - * OAuth listener for token updates if the Camel application needs to use - * the access token outside the route - */ - private OAuthRefreshListener refreshListener; - /** - * Flag to revoke OAuth refresh token on route shutdown default false. Will - * require a fresh refresh token on restart using either a custom - * IAuthSecureStorage or automatic component login by providing a user - * password - */ - private Boolean revokeOnShutdown; - /** - * Box shared link for shared endpoints can be a link for a shared comment - * file or folder - */ - private String sharedLink; - /** - * Password associated with the shared link MUST be provided with sharedLink - */ - private String sharedPassword; - /** - * Custom Box SDK configuration not required normally - */ - private IBoxConfig boxConfig; - /** - * Custom Box connection manager builder used to override default settings - * like max connections for underlying HttpClient. - */ - private BoxConnectionManagerBuilder connectionManagerBuilder; - /** - * Custom HTTP params for settings like proxy host - */ - private Map<String, Object> httpParams; - /** - * To configure security using SSLContextParameters. - */ - private SSLContextParameters sslContextParameters; - /** - * Amount of time the component will wait for a response from Box.com - * default is 30 seconds - */ - private Integer loginTimeout; - - public BoxConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(BoxConfiguration configuration) { - this.configuration = configuration; - } - - public BoxApiName getApiName() { - return apiName; - } - - public void setApiName(BoxApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - 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 IAuthSecureStorage getAuthSecureStorage() { - return authSecureStorage; - } - - public void setAuthSecureStorage(IAuthSecureStorage authSecureStorage) { - this.authSecureStorage = authSecureStorage; - } - - 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 OAuthRefreshListener getRefreshListener() { - return refreshListener; - } - - public void setRefreshListener(OAuthRefreshListener refreshListener) { - this.refreshListener = refreshListener; - } - - public Boolean getRevokeOnShutdown() { - return revokeOnShutdown; - } - - public void setRevokeOnShutdown(Boolean revokeOnShutdown) { - this.revokeOnShutdown = revokeOnShutdown; - } - - public String getSharedLink() { - return sharedLink; - } - - public void setSharedLink(String sharedLink) { - this.sharedLink = sharedLink; - } - - public String getSharedPassword() { - return sharedPassword; - } - - public void setSharedPassword(String sharedPassword) { - this.sharedPassword = sharedPassword; - } - - public IBoxConfig getBoxConfig() { - return boxConfig; - } - - public void setBoxConfig(IBoxConfig boxConfig) { - this.boxConfig = boxConfig; - } - - public BoxConnectionManagerBuilder getConnectionManagerBuilder() { - return connectionManagerBuilder; - } - - public void setConnectionManagerBuilder( - BoxConnectionManagerBuilder connectionManagerBuilder) { - this.connectionManagerBuilder = connectionManagerBuilder; - } - - public Map<String, Object> getHttpParams() { - return httpParams; - } - - public void setHttpParams(Map<String, Object> httpParams) { - this.httpParams = httpParams; - } - - public SSLContextParameters getSslContextParameters() { - return sslContextParameters; - } - - public void setSslContextParameters( - SSLContextParameters sslContextParameters) { - this.sslContextParameters = sslContextParameters; - } - - public Integer getLoginTimeout() { - return loginTimeout; - } - - public void setLoginTimeout(Integer loginTimeout) { - this.loginTimeout = loginTimeout; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-box/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-box/src/main/resources/META-INF/spring.factories b/components/camel-box/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 1cecc33..0000000 --- a/components/camel-box/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.box.springboot.BoxComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java b/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.java deleted file mode 100644 index 0d10ffa..0000000 --- a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentAutoConfiguration.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.braintree.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.braintree.BraintreeComponent; -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(BraintreeComponentConfiguration.class) -public class BraintreeComponentAutoConfiguration { - - @Bean(name = "braintree-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(BraintreeComponent.class) - public BraintreeComponent configureBraintreeComponent( - CamelContext camelContext, - BraintreeComponentConfiguration configuration) throws Exception { - BraintreeComponent component = new BraintreeComponent(); - 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-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentConfiguration.java b/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentConfiguration.java deleted file mode 100644 index 51dffbc..0000000 --- a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/springboot/BraintreeComponentConfiguration.java +++ /dev/null @@ -1,177 +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.braintree.springboot; - -import org.apache.camel.component.braintree.BraintreeConfiguration; -import org.apache.camel.component.braintree.internal.BraintreeApiName; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The braintree component is used for integrating with the Braintree Payment - * System. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.braintree") -public class BraintreeComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private BraintreeConfiguration configuration; - /** - * What kind of operation to perform - */ - private BraintreeApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * The environment Either SANDBOX or PRODUCTION - */ - private String environment; - /** - * The merchant id provided by Braintree. - */ - private String merchantId; - /** - * The public key provided by Braintree. - */ - private String publicKey; - /** - * The private key provided by Braintree. - */ - private String privateKey; - /** - * The proxy host - */ - private String proxyHost; - /** - * The proxy port - */ - private Integer proxyPort; - /** - * Set logging level for http calls see java.util.logging.Level - */ - private String httpLogLevel; - /** - * Set log category to use to log http calls default Braintree - */ - private String httpLogName; - /** - * Set read timeout for http calls. - */ - private Integer httpReadTimeout; - - public BraintreeConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(BraintreeConfiguration configuration) { - this.configuration = configuration; - } - - public BraintreeApiName getApiName() { - return apiName; - } - - public void setApiName(BraintreeApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - public String getEnvironment() { - return environment; - } - - public void setEnvironment(String environment) { - this.environment = environment; - } - - public String getMerchantId() { - return merchantId; - } - - public void setMerchantId(String merchantId) { - this.merchantId = merchantId; - } - - public String getPublicKey() { - return publicKey; - } - - public void setPublicKey(String publicKey) { - this.publicKey = publicKey; - } - - public String getPrivateKey() { - return privateKey; - } - - public void setPrivateKey(String privateKey) { - this.privateKey = privateKey; - } - - public String getProxyHost() { - return proxyHost; - } - - public void setProxyHost(String proxyHost) { - this.proxyHost = proxyHost; - } - - public Integer getProxyPort() { - return proxyPort; - } - - public void setProxyPort(Integer proxyPort) { - this.proxyPort = proxyPort; - } - - public String getHttpLogLevel() { - return httpLogLevel; - } - - public void setHttpLogLevel(String httpLogLevel) { - this.httpLogLevel = httpLogLevel; - } - - public String getHttpLogName() { - return httpLogName; - } - - public void setHttpLogName(String httpLogName) { - this.httpLogName = httpLogName; - } - - public Integer getHttpReadTimeout() { - return httpReadTimeout; - } - - public void setHttpReadTimeout(Integer httpReadTimeout) { - this.httpReadTimeout = httpReadTimeout; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-braintree/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-braintree/src/main/resources/META-INF/spring.factories b/components/camel-braintree/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 00066a8..0000000 --- a/components/camel-braintree/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.braintree.springboot.BraintreeComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentAutoConfiguration.java b/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentAutoConfiguration.java deleted file mode 100644 index 822c3f9..0000000 --- a/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentAutoConfiguration.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.cache.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.cache.CacheComponent; -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(CacheComponentConfiguration.class) -public class CacheComponentAutoConfiguration { - - @Bean(name = "cache-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(CacheComponent.class) - public CacheComponent configureCacheComponent(CamelContext camelContext, - CacheComponentConfiguration configuration) throws Exception { - CacheComponent component = new CacheComponent(); - 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-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentConfiguration.java b/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentConfiguration.java deleted file mode 100644 index e6576aa..0000000 --- a/components/camel-cache/src/main/java/org/apache/camel/component/cache/springboot/CacheComponentConfiguration.java +++ /dev/null @@ -1,227 +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.cache.springboot; - -import net.sf.ehcache.store.MemoryStoreEvictionPolicy; -import org.apache.camel.component.cache.CacheConfiguration; -import org.apache.camel.component.cache.CacheEventListenerRegistry; -import org.apache.camel.component.cache.CacheLoaderRegistry; -import org.apache.camel.component.cache.CacheManagerFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The cache component enables you to perform caching operations using EHCache - * as the Cache Implementation. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.cache") -public class CacheComponentConfiguration { - - /** - * To use the given CacheManagerFactory for creating the CacheManager. By - * default the DefaultCacheManagerFactory is used. - */ - private CacheManagerFactory cacheManagerFactory; - /** - * Sets the Cache configuration. Properties of the shared configuration can - * also be set individually. - */ - private CacheConfiguration configuration; - /** - * Sets the location of the ehcache.xml file to load from classpath or file - * system. By default the file is loaded from classpath:ehcache.xml - */ - private String configurationFile; - /** - * Name of the cache - */ - private String cacheName; - /** - * The number of elements that may be stored in the defined cache in memory. - */ - private Integer maxElementsInMemory; - /** - * Which eviction strategy to use when maximum number of elements in memory - * is reached. The strategy defines which elements to be removed. LRU - Lest - * Recently Used LFU - Lest Frequently Used FIFO - First In First Out - */ - private MemoryStoreEvictionPolicy memoryStoreEvictionPolicy; - /** - * Specifies whether cache may overflow to disk - */ - private Boolean overflowToDisk; - /** - * Sets whether elements are eternal. If eternal timeouts are ignored and - * the element never expires. - */ - private Boolean eternal; - /** - * The maximum time between creation time and when an element expires. Is - * used only if the element is not eternal - */ - private long timeToLiveSeconds; - /** - * The maximum amount of time between accesses before an element expires - */ - private long timeToIdleSeconds; - /** - * Whether the disk store persists between restarts of the application. - */ - private Boolean diskPersistent; - /** - * The number of seconds between runs of the disk expiry thread. - */ - private long diskExpiryThreadIntervalSeconds; - /** - * To configure event listeners using the CacheEventListenerRegistry - */ - private CacheEventListenerRegistry eventListenerRegistry; - /** - * To configure cache loader using the CacheLoaderRegistry - */ - private CacheLoaderRegistry cacheLoaderRegistry; - /** - * Whether to turn on allowing to store non serializable objects in the - * cache. If this option is enabled then overflow to disk cannot be enabled - * as well. - */ - private Boolean objectCache; - - public CacheManagerFactory getCacheManagerFactory() { - return cacheManagerFactory; - } - - public void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory) { - this.cacheManagerFactory = cacheManagerFactory; - } - - public CacheConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(CacheConfiguration configuration) { - this.configuration = configuration; - } - - public String getConfigurationFile() { - return configurationFile; - } - - public void setConfigurationFile(String configurationFile) { - this.configurationFile = configurationFile; - } - - public String getCacheName() { - return cacheName; - } - - public void setCacheName(String cacheName) { - this.cacheName = cacheName; - } - - public Integer getMaxElementsInMemory() { - return maxElementsInMemory; - } - - public void setMaxElementsInMemory(Integer maxElementsInMemory) { - this.maxElementsInMemory = maxElementsInMemory; - } - - public MemoryStoreEvictionPolicy getMemoryStoreEvictionPolicy() { - return memoryStoreEvictionPolicy; - } - - public void setMemoryStoreEvictionPolicy( - MemoryStoreEvictionPolicy memoryStoreEvictionPolicy) { - this.memoryStoreEvictionPolicy = memoryStoreEvictionPolicy; - } - - public Boolean getOverflowToDisk() { - return overflowToDisk; - } - - public void setOverflowToDisk(Boolean overflowToDisk) { - this.overflowToDisk = overflowToDisk; - } - - public Boolean getEternal() { - return eternal; - } - - public void setEternal(Boolean eternal) { - this.eternal = eternal; - } - - public long getTimeToLiveSeconds() { - return timeToLiveSeconds; - } - - public void setTimeToLiveSeconds(long timeToLiveSeconds) { - this.timeToLiveSeconds = timeToLiveSeconds; - } - - public long getTimeToIdleSeconds() { - return timeToIdleSeconds; - } - - public void setTimeToIdleSeconds(long timeToIdleSeconds) { - this.timeToIdleSeconds = timeToIdleSeconds; - } - - public Boolean getDiskPersistent() { - return diskPersistent; - } - - public void setDiskPersistent(Boolean diskPersistent) { - this.diskPersistent = diskPersistent; - } - - public long getDiskExpiryThreadIntervalSeconds() { - return diskExpiryThreadIntervalSeconds; - } - - public void setDiskExpiryThreadIntervalSeconds( - long diskExpiryThreadIntervalSeconds) { - this.diskExpiryThreadIntervalSeconds = diskExpiryThreadIntervalSeconds; - } - - public CacheEventListenerRegistry getEventListenerRegistry() { - return eventListenerRegistry; - } - - public void setEventListenerRegistry( - CacheEventListenerRegistry eventListenerRegistry) { - this.eventListenerRegistry = eventListenerRegistry; - } - - public CacheLoaderRegistry getCacheLoaderRegistry() { - return cacheLoaderRegistry; - } - - public void setCacheLoaderRegistry(CacheLoaderRegistry cacheLoaderRegistry) { - this.cacheLoaderRegistry = cacheLoaderRegistry; - } - - public Boolean getObjectCache() { - return objectCache; - } - - public void setObjectCache(Boolean objectCache) { - this.objectCache = objectCache; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-cache/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-cache/src/main/resources/META-INF/spring.factories b/components/camel-cache/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f9df793..0000000 --- a/components/camel-cache/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.cache.springboot.CacheComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.java deleted file mode 100644 index f7bb885..0000000 --- a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatAutoConfiguration.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.dataformat.castor.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.castor.CastorDataFormat; -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(CastorDataFormatConfiguration.class) -public class CastorDataFormatAutoConfiguration { - - @Bean(name = "castor-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(CastorDataFormat.class) - public CastorDataFormat configureCastorDataFormat( - CamelContext camelContext, - CastorDataFormatConfiguration configuration) throws Exception { - CastorDataFormat dataformat = new CastorDataFormat(); - 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