http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/main/resources/META-INF/spring.factories b/components/camel-spring/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 69ce171..0000000 --- a/components/camel-spring/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,21 +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.event.springboot.EventComponentAutoConfiguration,\ -org.apache.camel.language.spel.springboot.SpelLanguageAutoConfiguration -
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentAutoConfiguration.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentAutoConfiguration.java deleted file mode 100644 index 85c8dba..0000000 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentAutoConfiguration.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.sql.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.sql.SqlComponent; -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(SqlComponentConfiguration.class) -public class SqlComponentAutoConfiguration { - - @Bean(name = "sql-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SqlComponent.class) - public SqlComponent configureSqlComponent(CamelContext camelContext, - SqlComponentConfiguration configuration) throws Exception { - SqlComponent component = new SqlComponent(); - 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-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java deleted file mode 100644 index 42e0745..0000000 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.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.component.sql.springboot; - -import javax.sql.DataSource; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The sql component can be used to perform SQL query to a database. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.sql") -public class SqlComponentConfiguration { - - /** - * Sets the DataSource to use to communicate with the database. - */ - private DataSource dataSource; - /** - * Sets whether to use placeholder and replace all placeholder characters - * with sign in the SQL queries. This option is default true - */ - private Boolean usePlaceholder = true; - - public DataSource getDataSource() { - return dataSource; - } - - public void setDataSource(DataSource dataSource) { - this.dataSource = dataSource; - } - - public Boolean getUsePlaceholder() { - return usePlaceholder; - } - - public void setUsePlaceholder(Boolean usePlaceholder) { - this.usePlaceholder = usePlaceholder; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentAutoConfiguration.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentAutoConfiguration.java deleted file mode 100644 index 2ed59e1..0000000 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentAutoConfiguration.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.sql.stored.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.sql.stored.SqlStoredComponent; -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(SqlStoredComponentConfiguration.class) -public class SqlStoredComponentAutoConfiguration { - - @Bean(name = "sql-stored-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SqlStoredComponent.class) - public SqlStoredComponent configureSqlStoredComponent( - CamelContext camelContext, - SqlStoredComponentConfiguration configuration) throws Exception { - SqlStoredComponent component = new SqlStoredComponent(); - 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-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentConfiguration.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentConfiguration.java deleted file mode 100644 index 22dc8f7..0000000 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/springboot/SqlStoredComponentConfiguration.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.component.sql.stored.springboot; - -import javax.sql.DataSource; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel SQL support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.sql-stored") -public class SqlStoredComponentConfiguration { - - /** - * Sets the DataSource to use to communicate with the database. - */ - private DataSource dataSource; - - public DataSource getDataSource() { - return dataSource; - } - - public void setDataSource(DataSource dataSource) { - this.dataSource = dataSource; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-sql/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-sql/src/main/resources/META-INF/spring.factories b/components/camel-sql/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 1412326..0000000 --- a/components/camel-sql/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,21 +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.sql.springboot.SqlComponentAutoConfiguration,\ -org.apache.camel.component.sql.stored.springboot.SqlStoredComponentAutoConfiguration - http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentAutoConfiguration.java b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentAutoConfiguration.java deleted file mode 100644 index d7dd8a5..0000000 --- a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentAutoConfiguration.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.ssh.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.ssh.SshComponent; -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(SshComponentConfiguration.class) -public class SshComponentAutoConfiguration { - - @Bean(name = "ssh-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SshComponent.class) - public SshComponent configureSshComponent(CamelContext camelContext, - SshComponentConfiguration configuration) throws Exception { - SshComponent component = new SshComponent(); - 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-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java deleted file mode 100644 index 7d2813a..0000000 --- a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java +++ /dev/null @@ -1,179 +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.ssh.springboot; - -import org.apache.camel.component.ssh.SshConfiguration; -import org.apache.sshd.common.KeyPairProvider; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.boot.context.properties.DeprecatedConfigurationProperty; - -/** - * The ssh component enables access to SSH servers such that you can send an SSH - * command and process the response. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.ssh") -public class SshComponentConfiguration { - - /** - * To use the shared SSH configuration - */ - private SshConfiguration configuration; - /** - * Sets the hostname of the remote SSH server. - */ - private String host; - /** - * Sets the port number for the remote SSH server. - */ - private Integer port; - /** - * Sets the username to use in logging into the remote SSH server. - */ - private String username; - /** - * Sets the password to use in connecting to remote SSH server. Requires - * keyPairProvider to be set to null. - */ - private String password; - /** - * Sets the command string to send to the remote SSH server during every - * poll cycle. Only works with camel-ssh component being used as a consumer - * i.e. from(ssh://...). You may need to end your command with a newline and - * that must be URL encoded 0A - */ - private String pollCommand; - /** - * Sets the KeyPairProvider reference to use when connecting using - * Certificates to the remote SSH Server. - */ - private KeyPairProvider keyPairProvider; - /** - * Sets the key type to pass to the KeyPairProvider as part of - * authentication. KeyPairProvider.loadKey(...) will be passed this value. - * Defaults to ssh-rsa. - */ - private String keyType; - /** - * Sets the timeout in milliseconds to wait in establishing the remote SSH - * server connection. Defaults to 30000 milliseconds. - */ - private long timeout; - /** - * Sets the resource path of the certificate to use for Authentication. - */ - @Deprecated - private String certFilename; - /** - * Sets the resource path of the certificate to use for Authentication. Will - * use ResourceHelperKeyPairProvider to resolve file based certificate and - * depends on keyType setting. - */ - private String certResource; - - public SshConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(SshConfiguration configuration) { - this.configuration = configuration; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getPollCommand() { - return pollCommand; - } - - public void setPollCommand(String pollCommand) { - this.pollCommand = pollCommand; - } - - public KeyPairProvider getKeyPairProvider() { - return keyPairProvider; - } - - public void setKeyPairProvider(KeyPairProvider keyPairProvider) { - this.keyPairProvider = keyPairProvider; - } - - public String getKeyType() { - return keyType; - } - - public void setKeyType(String keyType) { - this.keyType = keyType; - } - - public long getTimeout() { - return timeout; - } - - public void setTimeout(long timeout) { - this.timeout = timeout; - } - - @Deprecated - @DeprecatedConfigurationProperty - public String getCertFilename() { - return certFilename; - } - - @Deprecated - public void setCertFilename(String certFilename) { - this.certFilename = certFilename; - } - - public String getCertResource() { - return certResource; - } - - public void setCertResource(String certResource) { - this.certResource = certResource; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-ssh/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-ssh/src/main/resources/META-INF/spring.factories b/components/camel-ssh/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 67aa6d0..0000000 --- a/components/camel-ssh/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.ssh.springboot.SshComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentAutoConfiguration.java b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentAutoConfiguration.java deleted file mode 100644 index 1955e56..0000000 --- a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentAutoConfiguration.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.stomp.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.stomp.StompComponent; -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(StompComponentConfiguration.class) -public class StompComponentAutoConfiguration { - - @Bean(name = "stomp-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(StompComponent.class) - public StompComponent configureStompComponent(CamelContext camelContext, - StompComponentConfiguration configuration) throws Exception { - StompComponent component = new StompComponent(); - 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-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java b/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java deleted file mode 100644 index f664a2d..0000000 --- a/components/camel-stomp/src/main/java/org/apache/camel/component/stomp/springboot/StompComponentConfiguration.java +++ /dev/null @@ -1,91 +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.stomp.springboot; - -import org.apache.camel.component.stomp.StompConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The stomp component is used for communicating with Stomp compliant message - * brokers. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.stomp") -public class StompComponentConfiguration { - - /** - * To use the shared stomp configuration - */ - private StompConfiguration configuration; - /** - * The URI of the Stomp broker to connect to - */ - private String brokerURL; - /** - * The username - */ - private String login; - /** - * The password - */ - private String passcode; - /** - * The virtual host - */ - private String host; - - public StompConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(StompConfiguration configuration) { - this.configuration = configuration; - } - - public String getBrokerURL() { - return brokerURL; - } - - public void setBrokerURL(String brokerURL) { - this.brokerURL = brokerURL; - } - - public String getLogin() { - return login; - } - - public void setLogin(String login) { - this.login = login; - } - - public String getPasscode() { - return passcode; - } - - public void setPasscode(String passcode) { - this.passcode = passcode; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-stomp/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-stomp/src/main/resources/META-INF/spring.factories b/components/camel-stomp/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 1f38a87..0000000 --- a/components/camel-stomp/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.stomp.springboot.StompComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java deleted file mode 100644 index 0e55b9f..0000000 --- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.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.component.syslog.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.syslog.SyslogDataFormat; -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(SyslogDataFormatConfiguration.class) -public class SyslogDataFormatAutoConfiguration { - - @Bean(name = "syslog-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SyslogDataFormat.class) - public SyslogDataFormat configureSyslogDataFormat( - CamelContext camelContext, - SyslogDataFormatConfiguration configuration) throws Exception { - SyslogDataFormat dataformat = new SyslogDataFormat(); - 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-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java deleted file mode 100644 index 12dec5f..0000000 --- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java +++ /dev/null @@ -1,28 +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.syslog.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Syslog support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.syslog") -public class SyslogDataFormatConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-syslog/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-syslog/src/main/resources/META-INF/spring.factories b/components/camel-syslog/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f965915..0000000 --- a/components/camel-syslog/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.syslog.springboot.SyslogDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java deleted file mode 100644 index 0e8c37b..0000000 --- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.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.tagsoup.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.tagsoup.TidyMarkupDataFormat; -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(TidyMarkupDataFormatConfiguration.class) -public class TidyMarkupDataFormatAutoConfiguration { - - @Bean(name = "tidyMarkup-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(TidyMarkupDataFormat.class) - public TidyMarkupDataFormat configureTidyMarkupDataFormat( - CamelContext camelContext, - TidyMarkupDataFormatConfiguration configuration) throws Exception { - TidyMarkupDataFormat dataformat = new TidyMarkupDataFormat(); - 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-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java deleted file mode 100644 index 478b70d..0000000 --- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.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.dataformat.tagsoup.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel TagSoup support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.tidymarkup") -public class TidyMarkupDataFormatConfiguration { - - /** - * What data type to unmarshal as can either be org.w3c.dom.Node or - * java.lang.String. Is by default org.w3c.dom.Node - */ - private String dataObjectType; - - public String getDataObjectType() { - return dataObjectType; - } - - public void setDataObjectType(String dataObjectType) { - this.dataObjectType = dataObjectType; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-tagsoup/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-tagsoup/src/main/resources/META-INF/spring.factories b/components/camel-tagsoup/src/main/resources/META-INF/spring.factories deleted file mode 100644 index e98439e..0000000 --- a/components/camel-tagsoup/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.tagsoup.springboot.TidyMarkupDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java deleted file mode 100644 index 41ea373..0000000 --- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.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.tarfile.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.tarfile.TarFileDataFormat; -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(TarFileDataFormatConfiguration.class) -public class TarFileDataFormatAutoConfiguration { - - @Bean(name = "tarfile-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(TarFileDataFormat.class) - public TarFileDataFormat configureTarFileDataFormat( - CamelContext camelContext, - TarFileDataFormatConfiguration configuration) throws Exception { - TarFileDataFormat dataformat = new TarFileDataFormat(); - 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-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java deleted file mode 100644 index 3b87904..0000000 --- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.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.dataformat.tarfile.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Tar file support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.tarfile") -public class TarFileDataFormatConfiguration { - - /** - * If the tar file has more then one entry the setting this option to true - * allows to work with the splitter EIP to split the data using an iterator - * in a streaming mode. - */ - private Boolean usingIterator = false; - - public Boolean getUsingIterator() { - return usingIterator; - } - - public void setUsingIterator(Boolean usingIterator) { - this.usingIterator = usingIterator; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-tarfile/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-tarfile/src/main/resources/META-INF/spring.factories b/components/camel-tarfile/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9c8e853..0000000 --- a/components/camel-tarfile/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.tarfile.springboot.TarFileDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentAutoConfiguration.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentAutoConfiguration.java deleted file mode 100644 index 7e82c23..0000000 --- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentAutoConfiguration.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.twitter.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.twitter.TwitterComponent; -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(TwitterComponentConfiguration.class) -public class TwitterComponentAutoConfiguration { - - @Bean(name = "twitter-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(TwitterComponent.class) - public TwitterComponent configureTwitterComponent( - CamelContext camelContext, - TwitterComponentConfiguration configuration) throws Exception { - TwitterComponent component = new TwitterComponent(); - 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-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentConfiguration.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentConfiguration.java deleted file mode 100644 index 114bc76..0000000 --- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/springboot/TwitterComponentConfiguration.java +++ /dev/null @@ -1,126 +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.twitter.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * This component integrates with Twitter to send tweets or search for tweets - * and more. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.twitter") -public class TwitterComponentConfiguration { - - /** - * The access token - */ - private String accessToken; - /** - * The access token secret - */ - private String accessTokenSecret; - /** - * The consumer key - */ - private String consumerKey; - /** - * The consumer secret - */ - private String consumerSecret; - /** - * The http proxy host which can be used for the camel-twitter. - */ - private String httpProxyHost; - /** - * The http proxy user which can be used for the camel-twitter. - */ - private String httpProxyUser; - /** - * The http proxy password which can be used for the camel-twitter. - */ - private String httpProxyPassword; - /** - * The http proxy port which can be used for the camel-twitter. - */ - private Integer httpProxyPort; - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public String getAccessTokenSecret() { - return accessTokenSecret; - } - - public void setAccessTokenSecret(String accessTokenSecret) { - this.accessTokenSecret = accessTokenSecret; - } - - public String getConsumerKey() { - return consumerKey; - } - - public void setConsumerKey(String consumerKey) { - this.consumerKey = consumerKey; - } - - public String getConsumerSecret() { - return consumerSecret; - } - - public void setConsumerSecret(String consumerSecret) { - this.consumerSecret = consumerSecret; - } - - public String getHttpProxyHost() { - return httpProxyHost; - } - - public void setHttpProxyHost(String httpProxyHost) { - this.httpProxyHost = httpProxyHost; - } - - public String getHttpProxyUser() { - return httpProxyUser; - } - - public void setHttpProxyUser(String httpProxyUser) { - this.httpProxyUser = httpProxyUser; - } - - public String getHttpProxyPassword() { - return httpProxyPassword; - } - - public void setHttpProxyPassword(String httpProxyPassword) { - this.httpProxyPassword = httpProxyPassword; - } - - public Integer getHttpProxyPort() { - return httpProxyPort; - } - - public void setHttpProxyPort(Integer httpProxyPort) { - this.httpProxyPort = httpProxyPort; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-twitter/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-twitter/src/main/resources/META-INF/spring.factories b/components/camel-twitter/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 8694c3b..0000000 --- a/components/camel-twitter/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.twitter.springboot.TwitterComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentAutoConfiguration.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentAutoConfiguration.java deleted file mode 100644 index 6e18352..0000000 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentAutoConfiguration.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.undertow.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.undertow.UndertowComponent; -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(UndertowComponentConfiguration.class) -public class UndertowComponentAutoConfiguration { - - @Bean(name = "undertow-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(UndertowComponent.class) - public UndertowComponent configureUndertowComponent( - CamelContext camelContext, - UndertowComponentConfiguration configuration) throws Exception { - UndertowComponent component = new UndertowComponent(); - 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-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java deleted file mode 100644 index 4bece05..0000000 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java +++ /dev/null @@ -1,58 +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.undertow.springboot; - -import org.apache.camel.component.undertow.UndertowHttpBinding; -import org.apache.camel.util.jsse.SSLContextParameters; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The undertow component provides HTTP-based endpoints for consuming and - * producing HTTP requests. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.undertow") -public class UndertowComponentConfiguration { - - /** - * To use a custom HttpBinding to control the mapping between Camel message - * and HttpClient. - */ - private UndertowHttpBinding undertowHttpBinding; - /** - * To configure security using SSLContextParameters - */ - private SSLContextParameters sslContextParameters; - - public UndertowHttpBinding getUndertowHttpBinding() { - return undertowHttpBinding; - } - - public void setUndertowHttpBinding(UndertowHttpBinding undertowHttpBinding) { - this.undertowHttpBinding = undertowHttpBinding; - } - - 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-undertow/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-undertow/src/main/resources/META-INF/spring.factories b/components/camel-undertow/src/main/resources/META-INF/spring.factories deleted file mode 100644 index effa0bf..0000000 --- a/components/camel-undertow/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.undertow.springboot.UndertowComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java deleted file mode 100644 index f79a404..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.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.univocity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.univocity.UniVocityCsvDataFormat; -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(UniVocityCsvDataFormatConfiguration.class) -public class UniVocityCsvDataFormatAutoConfiguration { - - @Bean(name = "univocity-csv-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(UniVocityCsvDataFormat.class) - public UniVocityCsvDataFormat configureUniVocityCsvDataFormat( - CamelContext camelContext, - UniVocityCsvDataFormatConfiguration configuration) throws Exception { - UniVocityCsvDataFormat dataformat = new UniVocityCsvDataFormat(); - 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-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java deleted file mode 100644 index 8d5545d..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java +++ /dev/null @@ -1,243 +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.univocity.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel UniVocity parsers data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.univocity-csv") -public class UniVocityCsvDataFormatConfiguration { - - /** - * Whether or not all values must be quoted when writing them. - */ - private Boolean quoteAllFields = false; - /** - * The quote symbol. - */ - private String quote; - /** - * The quote escape symbol - */ - private String quoteEscape; - /** - * The delimiter of values - */ - private String delimiter; - /** - * The string representation of a null value. The default value is null - */ - private String nullValue; - /** - * Whether or not the empty lines must be ignored. The default value is true - */ - private Boolean skipEmptyLines = true; - /** - * Whether or not the trailing white spaces must ignored. The default value - * is true - */ - private Boolean ignoreTrailingWhitespaces = true; - /** - * Whether or not the leading white spaces must be ignored. The default - * value is true - */ - private Boolean ignoreLeadingWhitespaces = true; - /** - * Whether or not the headers are disabled. When defined this option - * explicitly sets the headers as null which indicates that there is no - * header. The default value is false - */ - private Boolean headersDisabled = false; - /** - * Whether or not the header must be read in the first line of the test - * document The default value is false - */ - private Boolean headerExtractionEnabled = false; - /** - * The maximum number of record to read. - */ - private Integer numberOfRecordsToRead; - /** - * The String representation of an empty value - */ - private String emptyValue; - /** - * The line separator of the files The default value is to use the JVM - * platform line separator - */ - private String lineSeparator; - /** - * The normalized line separator of the files The default value is \n - */ - private String normalizedLineSeparator; - /** - * The comment symbol. The default value is - */ - private String comment; - /** - * Whether the unmarshalling should produce an iterator that reads the lines - * on the fly or if all the lines must be read at one. The default value is - * false - */ - private Boolean lazyLoad = false; - /** - * Whether the unmarshalling should produce maps for the lines values - * instead of lists. It requires to have header (either defined or - * collected). The default value is false - */ - private Boolean asMap = false; - - public Boolean getQuoteAllFields() { - return quoteAllFields; - } - - public void setQuoteAllFields(Boolean quoteAllFields) { - this.quoteAllFields = quoteAllFields; - } - - public String getQuote() { - return quote; - } - - public void setQuote(String quote) { - this.quote = quote; - } - - public String getQuoteEscape() { - return quoteEscape; - } - - public void setQuoteEscape(String quoteEscape) { - this.quoteEscape = quoteEscape; - } - - public String getDelimiter() { - return delimiter; - } - - public void setDelimiter(String delimiter) { - this.delimiter = delimiter; - } - - public String getNullValue() { - return nullValue; - } - - public void setNullValue(String nullValue) { - this.nullValue = nullValue; - } - - public Boolean getSkipEmptyLines() { - return skipEmptyLines; - } - - public void setSkipEmptyLines(Boolean skipEmptyLines) { - this.skipEmptyLines = skipEmptyLines; - } - - public Boolean getIgnoreTrailingWhitespaces() { - return ignoreTrailingWhitespaces; - } - - public void setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) { - this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces; - } - - public Boolean getIgnoreLeadingWhitespaces() { - return ignoreLeadingWhitespaces; - } - - public void setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) { - this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces; - } - - public Boolean getHeadersDisabled() { - return headersDisabled; - } - - public void setHeadersDisabled(Boolean headersDisabled) { - this.headersDisabled = headersDisabled; - } - - public Boolean getHeaderExtractionEnabled() { - return headerExtractionEnabled; - } - - public void setHeaderExtractionEnabled(Boolean headerExtractionEnabled) { - this.headerExtractionEnabled = headerExtractionEnabled; - } - - public Integer getNumberOfRecordsToRead() { - return numberOfRecordsToRead; - } - - public void setNumberOfRecordsToRead(Integer numberOfRecordsToRead) { - this.numberOfRecordsToRead = numberOfRecordsToRead; - } - - public String getEmptyValue() { - return emptyValue; - } - - public void setEmptyValue(String emptyValue) { - this.emptyValue = emptyValue; - } - - public String getLineSeparator() { - return lineSeparator; - } - - public void setLineSeparator(String lineSeparator) { - this.lineSeparator = lineSeparator; - } - - public String getNormalizedLineSeparator() { - return normalizedLineSeparator; - } - - public void setNormalizedLineSeparator(String normalizedLineSeparator) { - this.normalizedLineSeparator = normalizedLineSeparator; - } - - public String getComment() { - return comment; - } - - public void setComment(String comment) { - this.comment = comment; - } - - public Boolean getLazyLoad() { - return lazyLoad; - } - - public void setLazyLoad(Boolean lazyLoad) { - this.lazyLoad = lazyLoad; - } - - public Boolean getAsMap() { - return asMap; - } - - public void setAsMap(Boolean asMap) { - this.asMap = asMap; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java deleted file mode 100644 index 0ff29da..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.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.univocity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormat; -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(UniVocityFixedWidthDataFormatConfiguration.class) -public class UniVocityFixedWidthDataFormatAutoConfiguration { - - @Bean(name = "univocity-fixed-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(UniVocityFixedWidthDataFormat.class) - public UniVocityFixedWidthDataFormat configureUniVocityFixedWidthDataFormat( - CamelContext camelContext, - UniVocityFixedWidthDataFormatConfiguration configuration) - throws Exception { - UniVocityFixedWidthDataFormat dataformat = new UniVocityFixedWidthDataFormat(); - 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