You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/08/15 08:29:14 UTC
[57/74] [abbrv] camel git commit: CAMEL-10222: Deleted spring-boot
configuration from main projects
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
deleted file mode 100644
index dbcdaf7..0000000
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
+++ /dev/null
@@ -1,547 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.mail.springboot;
-
-import java.util.Properties;
-import javax.mail.Session;
-import org.apache.camel.component.mail.AttachmentsContentTransferEncodingResolver;
-import org.apache.camel.component.mail.ContentTypeResolver;
-import org.apache.camel.component.mail.JavaMailSender;
-import org.apache.camel.component.mail.MailConfiguration;
-import org.apache.camel.util.jsse.SSLContextParameters;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * To send or receive emails using imap/pop3 or stmp protocols.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.mail")
-public class MailComponentConfiguration {
-
- /**
- * Sets the Mail configuration. Properties of the shared configuration can
- * also be set individually.
- */
- private MailConfiguration configuration;
- /**
- * Resolver to determine Content-Type for file attachments.
- */
- private ContentTypeResolver contentTypeResolver;
- /**
- * To use a custom JavaMailSender for sending emails.
- */
- private JavaMailSender javaMailSender;
- /**
- * The mail server host name
- */
- private String host;
- /**
- * Sets the java mail options. Will clear any default properties and only
- * use the properties provided for this method.
- */
- private Properties javaMailProperties;
- /**
- * Sets additional java mail properties that will append/override any
- * default properties that is set based on all the other options. This is
- * useful if you need to add some special options but want to keep the
- * others as is.
- */
- private Properties additionalJavaMailProperties;
- /**
- * The password for login
- */
- private String password;
- /**
- * The Subject of the message being sent. Note: Setting the subject in the
- * header takes precedence over this option.
- */
- private String subject;
- /**
- * The port number of the mail server
- */
- private Integer port;
- /**
- * The protocol for communicating with the mail server
- */
- private String protocol;
- /**
- * Specifies the mail session that camel should use for all mail
- * interactions. Useful in scenarios where mail sessions are created and
- * managed by some other resource such as a JavaEE container. If this is not
- * specified Camel automatically creates the mail session for you.
- */
- private Session session;
- /**
- * The username for login
- */
- private String username;
- /**
- * The from email address
- */
- private String from;
- /**
- * Deletes the messages after they have been processed. This is done by
- * setting the DELETED flag on the mail message. If false the SEEN flag is
- * set instead. As of Camel 2.10 you can override this configuration option
- * by setting a header with the key delete to determine if the mail should
- * be deleted or not.
- */
- private Boolean delete;
- /**
- * Specifies whether Camel should map the received mail message to Camel
- * body/headers. If set to true the body of the mail message is mapped to
- * the body of the Camel IN message and the mail headers are mapped to IN
- * headers. If this option is set to false then the IN message contains a
- * raw javax.mail.Message. You can retrieve this raw message by calling
- * exchange.getIn().getBody(javax.mail.Message.class).
- */
- private Boolean mapMailMessage;
- /**
- * The folder to poll.
- */
- private String folderName;
- /**
- * Option to let Camel ignore unsupported charset in the local JVM when
- * sending mails. If the charset is unsupported then charset=XXX (where XXX
- * represents the unsupported charset) is removed from the content-type and
- * it relies on the platform default instead.
- */
- private Boolean ignoreUriScheme;
- /**
- * Whether to limit by unseen mails only.
- */
- private Boolean unseen;
- /**
- * Sets the To email address. Separate multiple email addresses with comma.
- */
- private String to;
- /**
- * Sets the CC email address. Separate multiple email addresses with comma.
- */
- private String cc;
- /**
- * Sets the BCC email address. Separate multiple email addresses with comma.
- */
- private String bcc;
- /**
- * The Reply-To recipients (the receivers of the response mail). Separate
- * multiple email addresses with a comma.
- */
- private String replyTo;
- /**
- * Sets the maximum number of messages to consume during a poll. This can be
- * used to avoid overloading a mail server if a mailbox folder contains a
- * lot of messages. Default value of -1 means no fetch size and all messages
- * will be consumed. Setting the value to 0 is a special corner case where
- * Camel will not consume any messages at all.
- */
- private Integer fetchSize;
- /**
- * Enable debug mode on the underlying mail framework. The SUN Mail
- * framework logs the debug messages to System.out by default.
- */
- private Boolean debugMode;
- /**
- * The connection timeout in milliseconds.
- */
- private Integer connectionTimeout;
- /**
- * To use a dummy security setting for trusting all certificates. Should
- * only be used for development mode and not production.
- */
- private Boolean dummyTrustManager;
- /**
- * The mail message content type. Use text/html for HTML mails.
- */
- private String contentType;
- /**
- * Specifies the key to an IN message header that contains an alternative
- * email body. For example if you send emails in text/html format and want
- * to provide an alternative mail body for non-HTML email clients set the
- * alternative mail body with this key as a header.
- */
- private String alternativeBodyHeader;
- /**
- * Whether to use disposition inline or attachment.
- */
- private Boolean useInlineAttachments;
- /**
- * Option to let Camel ignore unsupported charset in the local JVM when
- * sending mails. If the charset is unsupported then charset=XXX (where XXX
- * represents the unsupported charset) is removed from the content-type and
- * it relies on the platform default instead.
- */
- private Boolean ignoreUnsupportedCharset;
- /**
- * Whether the consumer should disconnect after polling. If enabled this
- * forces Camel to connect on each poll.
- */
- private Boolean disconnect;
- /**
- * Whether the consumer should close the folder after polling. Setting this
- * option to false and having disconnect=false as well then the consumer
- * keep the folder open between polls.
- */
- private Boolean closeFolder;
- /**
- * To configure security using SSLContextParameters.
- */
- private SSLContextParameters sslContextParameters;
- /**
- * After processing a mail message it can be copied to a mail folder with
- * the given name. You can override this configuration value with a header
- * with the key copyTo allowing you to copy messages to folder names
- * configured at runtime.
- */
- private String copyTo;
- /**
- * Will mark the javax.mail.Message as peeked before processing the mail
- * message. This applies to IMAPMessage messages types only. By using peek
- * the mail will not be eager marked as SEEN on the mail server which allows
- * us to rollback the mail message if there is an error processing in Camel.
- */
- private Boolean peek;
- /**
- * If the mail consumer cannot retrieve a given mail message then this
- * option allows to skip the message and move on to retrieve the next mail
- * message. The default behavior would be the consumer throws an exception
- * and no mails from the batch would be able to be routed by Camel.
- */
- private Boolean skipFailedMessage;
- /**
- * If the mail consumer cannot retrieve a given mail message then this
- * option allows to handle the caused exception by the consumer's error
- * handler. By enable the bridge error handler on the consumer then the
- * Camel routing error handler can handle the exception instead. The default
- * behavior would be the consumer throws an exception and no mails from the
- * batch would be able to be routed by Camel.
- */
- private Boolean handleFailedMessage;
- /**
- * To use a custom AttachmentsContentTransferEncodingResolver to resolve
- * what content-type-encoding to use for attachments.
- */
- private AttachmentsContentTransferEncodingResolver attachmentsContentTransferEncodingResolver;
-
- public MailConfiguration getConfiguration() {
- return configuration;
- }
-
- public void setConfiguration(MailConfiguration configuration) {
- this.configuration = configuration;
- }
-
- public ContentTypeResolver getContentTypeResolver() {
- return contentTypeResolver;
- }
-
- public void setContentTypeResolver(ContentTypeResolver contentTypeResolver) {
- this.contentTypeResolver = contentTypeResolver;
- }
-
- public JavaMailSender getJavaMailSender() {
- return javaMailSender;
- }
-
- public void setJavaMailSender(JavaMailSender javaMailSender) {
- this.javaMailSender = javaMailSender;
- }
-
- public String getHost() {
- return host;
- }
-
- public void setHost(String host) {
- this.host = host;
- }
-
- public Properties getJavaMailProperties() {
- return javaMailProperties;
- }
-
- public void setJavaMailProperties(Properties javaMailProperties) {
- this.javaMailProperties = javaMailProperties;
- }
-
- public Properties getAdditionalJavaMailProperties() {
- return additionalJavaMailProperties;
- }
-
- public void setAdditionalJavaMailProperties(
- Properties additionalJavaMailProperties) {
- this.additionalJavaMailProperties = additionalJavaMailProperties;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public String getSubject() {
- return subject;
- }
-
- public void setSubject(String subject) {
- this.subject = subject;
- }
-
- public Integer getPort() {
- return port;
- }
-
- public void setPort(Integer port) {
- this.port = port;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- public void setProtocol(String protocol) {
- this.protocol = protocol;
- }
-
- public Session getSession() {
- return session;
- }
-
- public void setSession(Session session) {
- this.session = session;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getFrom() {
- return from;
- }
-
- public void setFrom(String from) {
- this.from = from;
- }
-
- public Boolean getDelete() {
- return delete;
- }
-
- public void setDelete(Boolean delete) {
- this.delete = delete;
- }
-
- public Boolean getMapMailMessage() {
- return mapMailMessage;
- }
-
- public void setMapMailMessage(Boolean mapMailMessage) {
- this.mapMailMessage = mapMailMessage;
- }
-
- public String getFolderName() {
- return folderName;
- }
-
- public void setFolderName(String folderName) {
- this.folderName = folderName;
- }
-
- public Boolean getIgnoreUriScheme() {
- return ignoreUriScheme;
- }
-
- public void setIgnoreUriScheme(Boolean ignoreUriScheme) {
- this.ignoreUriScheme = ignoreUriScheme;
- }
-
- public Boolean getUnseen() {
- return unseen;
- }
-
- public void setUnseen(Boolean unseen) {
- this.unseen = unseen;
- }
-
- public String getTo() {
- return to;
- }
-
- public void setTo(String to) {
- this.to = to;
- }
-
- public String getCc() {
- return cc;
- }
-
- public void setCc(String cc) {
- this.cc = cc;
- }
-
- public String getBcc() {
- return bcc;
- }
-
- public void setBcc(String bcc) {
- this.bcc = bcc;
- }
-
- public String getReplyTo() {
- return replyTo;
- }
-
- public void setReplyTo(String replyTo) {
- this.replyTo = replyTo;
- }
-
- public Integer getFetchSize() {
- return fetchSize;
- }
-
- public void setFetchSize(Integer fetchSize) {
- this.fetchSize = fetchSize;
- }
-
- public Boolean getDebugMode() {
- return debugMode;
- }
-
- public void setDebugMode(Boolean debugMode) {
- this.debugMode = debugMode;
- }
-
- public Integer getConnectionTimeout() {
- return connectionTimeout;
- }
-
- public void setConnectionTimeout(Integer connectionTimeout) {
- this.connectionTimeout = connectionTimeout;
- }
-
- public Boolean getDummyTrustManager() {
- return dummyTrustManager;
- }
-
- public void setDummyTrustManager(Boolean dummyTrustManager) {
- this.dummyTrustManager = dummyTrustManager;
- }
-
- public String getContentType() {
- return contentType;
- }
-
- public void setContentType(String contentType) {
- this.contentType = contentType;
- }
-
- public String getAlternativeBodyHeader() {
- return alternativeBodyHeader;
- }
-
- public void setAlternativeBodyHeader(String alternativeBodyHeader) {
- this.alternativeBodyHeader = alternativeBodyHeader;
- }
-
- public Boolean getUseInlineAttachments() {
- return useInlineAttachments;
- }
-
- public void setUseInlineAttachments(Boolean useInlineAttachments) {
- this.useInlineAttachments = useInlineAttachments;
- }
-
- public Boolean getIgnoreUnsupportedCharset() {
- return ignoreUnsupportedCharset;
- }
-
- public void setIgnoreUnsupportedCharset(Boolean ignoreUnsupportedCharset) {
- this.ignoreUnsupportedCharset = ignoreUnsupportedCharset;
- }
-
- public Boolean getDisconnect() {
- return disconnect;
- }
-
- public void setDisconnect(Boolean disconnect) {
- this.disconnect = disconnect;
- }
-
- public Boolean getCloseFolder() {
- return closeFolder;
- }
-
- public void setCloseFolder(Boolean closeFolder) {
- this.closeFolder = closeFolder;
- }
-
- public SSLContextParameters getSslContextParameters() {
- return sslContextParameters;
- }
-
- public void setSslContextParameters(
- SSLContextParameters sslContextParameters) {
- this.sslContextParameters = sslContextParameters;
- }
-
- public String getCopyTo() {
- return copyTo;
- }
-
- public void setCopyTo(String copyTo) {
- this.copyTo = copyTo;
- }
-
- public Boolean getPeek() {
- return peek;
- }
-
- public void setPeek(Boolean peek) {
- this.peek = peek;
- }
-
- public Boolean getSkipFailedMessage() {
- return skipFailedMessage;
- }
-
- public void setSkipFailedMessage(Boolean skipFailedMessage) {
- this.skipFailedMessage = skipFailedMessage;
- }
-
- public Boolean getHandleFailedMessage() {
- return handleFailedMessage;
- }
-
- public void setHandleFailedMessage(Boolean handleFailedMessage) {
- this.handleFailedMessage = handleFailedMessage;
- }
-
- public AttachmentsContentTransferEncodingResolver getAttachmentsContentTransferEncodingResolver() {
- return attachmentsContentTransferEncodingResolver;
- }
-
- public void setAttachmentsContentTransferEncodingResolver(
- AttachmentsContentTransferEncodingResolver attachmentsContentTransferEncodingResolver) {
- this.attachmentsContentTransferEncodingResolver = attachmentsContentTransferEncodingResolver;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java
deleted file mode 100644
index 5934038..0000000
--- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.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.mime.multipart.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.dataformat.mime.multipart.MimeMultipartDataFormat;
-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(MimeMultipartDataFormatConfiguration.class)
-public class MimeMultipartDataFormatAutoConfiguration {
-
- @Bean(name = "mime-multipart-dataformat")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MimeMultipartDataFormat.class)
- public MimeMultipartDataFormat configureMimeMultipartDataFormat(
- CamelContext camelContext,
- MimeMultipartDataFormatConfiguration configuration)
- throws Exception {
- MimeMultipartDataFormat dataformat = new MimeMultipartDataFormat();
- 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-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
deleted file mode 100644
index a881a5d..0000000
--- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java
+++ /dev/null
@@ -1,94 +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.mime.multipart.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Camel Mail support
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.dataformat.mime-multipart")
-public class MimeMultipartDataFormatConfiguration {
-
- /**
- * Specify the subtype of the MIME Multipart. Default is mixed.
- */
- private String multipartSubType;
- /**
- * Defines whether a message without attachment is also marshaled into a
- * MIME Multipart (with only one body part). Default is false.
- */
- private Boolean multipartWithoutAttachment = false;
- /**
- * Defines whether the MIME-Multipart headers are part of the message body
- * (true) or are set as Camel headers (false). Default is false.
- */
- private Boolean headersInline = false;
- /**
- * A regex that defines which Camel headers are also included as MIME
- * headers into the MIME multipart. This will only work if headersInline is
- * set to true. Default is to include no headers
- */
- private String includeHeaders;
- /**
- * Defines whether the content of binary parts in the MIME multipart is
- * binary (true) or Base-64 encoded (false) Default is false.
- */
- private Boolean binaryContent = false;
-
- public String getMultipartSubType() {
- return multipartSubType;
- }
-
- public void setMultipartSubType(String multipartSubType) {
- this.multipartSubType = multipartSubType;
- }
-
- public Boolean getMultipartWithoutAttachment() {
- return multipartWithoutAttachment;
- }
-
- public void setMultipartWithoutAttachment(Boolean multipartWithoutAttachment) {
- this.multipartWithoutAttachment = multipartWithoutAttachment;
- }
-
- public Boolean getHeadersInline() {
- return headersInline;
- }
-
- public void setHeadersInline(Boolean headersInline) {
- this.headersInline = headersInline;
- }
-
- public String getIncludeHeaders() {
- return includeHeaders;
- }
-
- public void setIncludeHeaders(String includeHeaders) {
- this.includeHeaders = includeHeaders;
- }
-
- public Boolean getBinaryContent() {
- return binaryContent;
- }
-
- public void setBinaryContent(Boolean binaryContent) {
- this.binaryContent = binaryContent;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mail/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/main/resources/META-INF/spring.factories b/components/camel-mail/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index 2e586fd..0000000
--- a/components/camel-mail/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.mail.springboot.MailComponentAutoConfiguration,\
-org.apache.camel.dataformat.mime.multipart.springboot.MimeMultipartDataFormatAutoConfiguration
-
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentAutoConfiguration.java b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentAutoConfiguration.java
deleted file mode 100644
index 7866bc1..0000000
--- a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentAutoConfiguration.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.metrics.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.metrics.MetricsComponent;
-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(MetricsComponentConfiguration.class)
-public class MetricsComponentAutoConfiguration {
-
- @Bean(name = "metrics-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MetricsComponent.class)
- public MetricsComponent configureMetricsComponent(
- CamelContext camelContext,
- MetricsComponentConfiguration configuration) throws Exception {
- MetricsComponent component = new MetricsComponent();
- 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-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentConfiguration.java b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentConfiguration.java
deleted file mode 100644
index b0f478e..0000000
--- a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/springboot/MetricsComponentConfiguration.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.metrics.springboot;
-
-import com.codahale.metrics.MetricRegistry;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * To collect various metrics directly from Camel routes using the DropWizard
- * metrics library.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.metrics")
-public class MetricsComponentConfiguration {
-
- /**
- * To use a custom configured MetricRegistry.
- */
- private MetricRegistry metricRegistry;
-
- public MetricRegistry getMetricRegistry() {
- return metricRegistry;
- }
-
- public void setMetricRegistry(MetricRegistry metricRegistry) {
- this.metricRegistry = metricRegistry;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-metrics/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-metrics/src/main/resources/META-INF/spring.factories b/components/camel-metrics/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index dd83a8b..0000000
--- a/components/camel-metrics/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.metrics.springboot.MetricsComponentAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentAutoConfiguration.java b/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentAutoConfiguration.java
deleted file mode 100644
index 7f3cb30..0000000
--- a/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentAutoConfiguration.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.mina.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.mina.MinaComponent;
-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(MinaComponentConfiguration.class)
-public class MinaComponentAutoConfiguration {
-
- @Bean(name = "mina-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MinaComponent.class)
- public MinaComponent configureMinaComponent(CamelContext camelContext,
- MinaComponentConfiguration configuration) throws Exception {
- MinaComponent component = new MinaComponent();
- 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-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentConfiguration.java b/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentConfiguration.java
deleted file mode 100644
index 3e7dbae..0000000
--- a/components/camel-mina/src/main/java/org/apache/camel/component/mina/springboot/MinaComponentConfiguration.java
+++ /dev/null
@@ -1,313 +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.mina.springboot;
-
-import java.util.List;
-import org.apache.camel.LoggingLevel;
-import org.apache.camel.component.mina.MinaConfiguration;
-import org.apache.camel.component.mina.TextLineDelimiter;
-import org.apache.mina.common.IoFilter;
-import org.apache.mina.filter.codec.ProtocolCodecFactory;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Socket level networking using TCP or UDP with the Apache Mina 1.x library.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.mina")
-public class MinaComponentConfiguration {
-
- /**
- * To use the shared mina configuration. Properties of the shared
- * configuration can also be set individually.
- */
- private MinaConfiguration configuration;
- /**
- * Protocol to use
- */
- private String protocol;
- /**
- * Hostname to use. Use localhost or 0.0.0.0 for local server as consumer.
- * For producer use the hostname or ip address of the remote server.
- */
- private String host;
- /**
- * Port number
- */
- private Integer port;
- /**
- * Setting to set endpoint as one-way or request-response.
- */
- private Boolean sync;
- /**
- * Only used for TCP. If no codec is specified you can use this flag to
- * indicate a text line based codec; if not specified or the value is false
- * then Object Serialization is assumed over TCP.
- */
- private Boolean textline;
- /**
- * Only used for TCP and if textline=true. Sets the text line delimiter to
- * use. If none provided Camel will use DEFAULT. This delimiter is used to
- * mark the end of text.
- */
- private TextLineDelimiter textlineDelimiter;
- /**
- * To use a custom minda codec implementation.
- */
- private ProtocolCodecFactory codec;
- /**
- * You can configure the encoding (a charset name) to use for the TCP
- * textline codec and the UDP protocol. If not provided Camel will use the
- * JVM default Charset
- */
- private String encoding;
- /**
- * You can configure the timeout that specifies how long to wait for a
- * response from a remote server. The timeout unit is in milliseconds so
- * 60000 is 60 seconds.
- */
- private long timeout;
- /**
- * Sessions can be lazily created to avoid exceptions if the remote server
- * is not up and running when the Camel producer is started.
- */
- private Boolean lazySessionCreation;
- /**
- * Only used for TCP. You can transfer the exchange over the wire instead of
- * just the body. The following fields are transferred: In body Out body
- * fault body In headers Out headers fault headers exchange properties
- * exchange exception. This requires that the objects are serializable.
- * Camel will exclude any non-serializable objects and log it at WARN level.
- */
- private Boolean transferExchange;
- /**
- * To set the textline protocol encoder max line length. By default the
- * default value of Mina itself is used which are Integer.MAX_VALUE.
- */
- private Integer encoderMaxLineLength;
- /**
- * To set the textline protocol decoder max line length. By default the
- * default value of Mina itself is used which are 1024.
- */
- private Integer decoderMaxLineLength;
- /**
- * You can enable the Apache MINA logging filter. Apache MINA uses slf4j
- * logging at INFO level to log all input and output.
- */
- private Boolean minaLogger;
- /**
- * You can set a list of Mina IoFilters to use.
- */
- private List<IoFilter> filters;
- /**
- * The mina component installs a default codec if both codec is null and
- * textline is false. Setting allowDefaultCodec to false prevents the mina
- * component from installing a default codec as the first element in the
- * filter chain. This is useful in scenarios where another filter must be
- * the first in the filter chain like the SSL filter.
- */
- private Boolean allowDefaultCodec;
- /**
- * Whether or not to disconnect(close) from Mina session right after use.
- * Can be used for both consumer and producer.
- */
- private Boolean disconnect;
- /**
- * If sync is enabled then this option dictates MinaConsumer if it should
- * disconnect where there is no reply to send back.
- */
- private Boolean disconnectOnNoReply;
- /**
- * If sync is enabled this option dictates MinaConsumer which logging level
- * to use when logging a there is no reply to send back.
- */
- private LoggingLevel noReplyLogLevel;
- /**
- * If the clientMode is true mina consumer will connect the address as a TCP
- * client.
- */
- private Boolean clientMode;
-
- public MinaConfiguration getConfiguration() {
- return configuration;
- }
-
- public void setConfiguration(MinaConfiguration configuration) {
- this.configuration = configuration;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- public void setProtocol(String protocol) {
- this.protocol = protocol;
- }
-
- 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 Boolean getSync() {
- return sync;
- }
-
- public void setSync(Boolean sync) {
- this.sync = sync;
- }
-
- public Boolean getTextline() {
- return textline;
- }
-
- public void setTextline(Boolean textline) {
- this.textline = textline;
- }
-
- public TextLineDelimiter getTextlineDelimiter() {
- return textlineDelimiter;
- }
-
- public void setTextlineDelimiter(TextLineDelimiter textlineDelimiter) {
- this.textlineDelimiter = textlineDelimiter;
- }
-
- public ProtocolCodecFactory getCodec() {
- return codec;
- }
-
- public void setCodec(ProtocolCodecFactory codec) {
- this.codec = codec;
- }
-
- public String getEncoding() {
- return encoding;
- }
-
- public void setEncoding(String encoding) {
- this.encoding = encoding;
- }
-
- public long getTimeout() {
- return timeout;
- }
-
- public void setTimeout(long timeout) {
- this.timeout = timeout;
- }
-
- public Boolean getLazySessionCreation() {
- return lazySessionCreation;
- }
-
- public void setLazySessionCreation(Boolean lazySessionCreation) {
- this.lazySessionCreation = lazySessionCreation;
- }
-
- public Boolean getTransferExchange() {
- return transferExchange;
- }
-
- public void setTransferExchange(Boolean transferExchange) {
- this.transferExchange = transferExchange;
- }
-
- public Integer getEncoderMaxLineLength() {
- return encoderMaxLineLength;
- }
-
- public void setEncoderMaxLineLength(Integer encoderMaxLineLength) {
- this.encoderMaxLineLength = encoderMaxLineLength;
- }
-
- public Integer getDecoderMaxLineLength() {
- return decoderMaxLineLength;
- }
-
- public void setDecoderMaxLineLength(Integer decoderMaxLineLength) {
- this.decoderMaxLineLength = decoderMaxLineLength;
- }
-
- public Boolean getMinaLogger() {
- return minaLogger;
- }
-
- public void setMinaLogger(Boolean minaLogger) {
- this.minaLogger = minaLogger;
- }
-
- public List<IoFilter> getFilters() {
- return filters;
- }
-
- public void setFilters(List<IoFilter> filters) {
- this.filters = filters;
- }
-
- public Boolean getAllowDefaultCodec() {
- return allowDefaultCodec;
- }
-
- public void setAllowDefaultCodec(Boolean allowDefaultCodec) {
- this.allowDefaultCodec = allowDefaultCodec;
- }
-
- public Boolean getDisconnect() {
- return disconnect;
- }
-
- public void setDisconnect(Boolean disconnect) {
- this.disconnect = disconnect;
- }
-
- public Boolean getDisconnectOnNoReply() {
- return disconnectOnNoReply;
- }
-
- public void setDisconnectOnNoReply(Boolean disconnectOnNoReply) {
- this.disconnectOnNoReply = disconnectOnNoReply;
- }
-
- public LoggingLevel getNoReplyLogLevel() {
- return noReplyLogLevel;
- }
-
- public void setNoReplyLogLevel(LoggingLevel noReplyLogLevel) {
- this.noReplyLogLevel = noReplyLogLevel;
- }
-
- public Boolean getClientMode() {
- return clientMode;
- }
-
- public void setClientMode(Boolean clientMode) {
- this.clientMode = clientMode;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mina/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-mina/src/main/resources/META-INF/spring.factories b/components/camel-mina/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index 7d810bf..0000000
--- a/components/camel-mina/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.mina.springboot.MinaComponentAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentAutoConfiguration.java b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentAutoConfiguration.java
deleted file mode 100644
index b5e3524..0000000
--- a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentAutoConfiguration.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.mina2.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.mina2.Mina2Component;
-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(Mina2ComponentConfiguration.class)
-public class Mina2ComponentAutoConfiguration {
-
- @Bean(name = "mina2-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(Mina2Component.class)
- public Mina2Component configureMina2Component(CamelContext camelContext,
- Mina2ComponentConfiguration configuration) throws Exception {
- Mina2Component component = new Mina2Component();
- 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-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentConfiguration.java b/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentConfiguration.java
deleted file mode 100644
index edb49b5..0000000
--- a/components/camel-mina2/src/main/java/org/apache/camel/component/mina2/springboot/Mina2ComponentConfiguration.java
+++ /dev/null
@@ -1,377 +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.mina2.springboot;
-
-import java.util.List;
-import org.apache.camel.LoggingLevel;
-import org.apache.camel.component.mina2.Mina2Configuration;
-import org.apache.camel.component.mina2.Mina2TextLineDelimiter;
-import org.apache.camel.util.jsse.SSLContextParameters;
-import org.apache.mina.core.filterchain.IoFilter;
-import org.apache.mina.filter.codec.ProtocolCodecFactory;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Socket level networking using TCP or UDP with the Apache Mina 2.x library.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.mina2")
-public class Mina2ComponentConfiguration {
-
- /**
- * To use the shared mina configuration. Properties of the shared
- * configuration can also be set individually.
- */
- private Mina2Configuration configuration;
- /**
- * Protocol to use
- */
- private String protocol;
- /**
- * Hostname to use. Use localhost or 0.0.0.0 for local server as consumer.
- * For producer use the hostname or ip address of the remote server.
- */
- private String host;
- /**
- * Port number
- */
- private Integer port;
- /**
- * Setting to set endpoint as one-way or request-response.
- */
- private Boolean sync;
- /**
- * Only used for TCP. If no codec is specified you can use this flag to
- * indicate a text line based codec; if not specified or the value is false
- * then Object Serialization is assumed over TCP.
- */
- private Boolean textline;
- /**
- * Only used for TCP and if textline=true. Sets the text line delimiter to
- * use. If none provided Camel will use DEFAULT. This delimiter is used to
- * mark the end of text.
- */
- private Mina2TextLineDelimiter textlineDelimiter;
- /**
- * To use a custom minda codec implementation.
- */
- private ProtocolCodecFactory codec;
- /**
- * You can configure the encoding (a charset name) to use for the TCP
- * textline codec and the UDP protocol. If not provided Camel will use the
- * JVM default Charset
- */
- private String encoding;
- /**
- * You can configure the timeout that specifies how long to wait for a
- * response from a remote server. The timeout unit is in milliseconds so
- * 60000 is 60 seconds.
- */
- private long timeout;
- /**
- * Sessions can be lazily created to avoid exceptions if the remote server
- * is not up and running when the Camel producer is started.
- */
- private Boolean lazySessionCreation;
- /**
- * Only used for TCP. You can transfer the exchange over the wire instead of
- * just the body. The following fields are transferred: In body Out body
- * fault body In headers Out headers fault headers exchange properties
- * exchange exception. This requires that the objects are serializable.
- * Camel will exclude any non-serializable objects and log it at WARN level.
- */
- private Boolean transferExchange;
- /**
- * To set the textline protocol encoder max line length. By default the
- * default value of Mina itself is used which are Integer.MAX_VALUE.
- */
- private Integer encoderMaxLineLength;
- /**
- * To set the textline protocol decoder max line length. By default the
- * default value of Mina itself is used which are 1024.
- */
- private Integer decoderMaxLineLength;
- /**
- * You can enable the Apache MINA logging filter. Apache MINA uses slf4j
- * logging at INFO level to log all input and output.
- */
- private Boolean minaLogger;
- /**
- * You can set a list of Mina IoFilters to use.
- */
- private List<IoFilter> filters;
- /**
- * The mina component installs a default codec if both codec is null and
- * textline is false. Setting allowDefaultCodec to false prevents the mina
- * component from installing a default codec as the first element in the
- * filter chain. This is useful in scenarios where another filter must be
- * the first in the filter chain like the SSL filter.
- */
- private Boolean allowDefaultCodec;
- /**
- * Whether or not to disconnect(close) from Mina session right after use.
- * Can be used for both consumer and producer.
- */
- private Boolean disconnect;
- /**
- * If sync is enabled then this option dictates MinaConsumer if it should
- * disconnect where there is no reply to send back.
- */
- private Boolean disconnectOnNoReply;
- /**
- * If sync is enabled this option dictates MinaConsumer which logging level
- * to use when logging a there is no reply to send back.
- */
- private LoggingLevel noReplyLogLevel;
- /**
- * To configure SSL security.
- */
- private SSLContextParameters sslContextParameters;
- /**
- * Whether to auto start SSL handshake.
- */
- private Boolean autoStartTls;
- /**
- * Number of worker threads in the worker pool for TCP and UDP
- */
- private Integer maximumPoolSize;
- /**
- * Whether to use ordered thread pool to ensure events are processed orderly
- * on the same channel.
- */
- private Boolean orderedThreadPoolExecutor;
- /**
- * Whether to create the InetAddress once and reuse. Setting this to false
- * allows to pickup DNS changes in the network.
- */
- private Boolean cachedAddress;
- /**
- * If the clientMode is true mina consumer will connect the address as a TCP
- * client.
- */
- private Boolean clientMode;
-
- public Mina2Configuration getConfiguration() {
- return configuration;
- }
-
- public void setConfiguration(Mina2Configuration configuration) {
- this.configuration = configuration;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- public void setProtocol(String protocol) {
- this.protocol = protocol;
- }
-
- 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 Boolean getSync() {
- return sync;
- }
-
- public void setSync(Boolean sync) {
- this.sync = sync;
- }
-
- public Boolean getTextline() {
- return textline;
- }
-
- public void setTextline(Boolean textline) {
- this.textline = textline;
- }
-
- public Mina2TextLineDelimiter getTextlineDelimiter() {
- return textlineDelimiter;
- }
-
- public void setTextlineDelimiter(Mina2TextLineDelimiter textlineDelimiter) {
- this.textlineDelimiter = textlineDelimiter;
- }
-
- public ProtocolCodecFactory getCodec() {
- return codec;
- }
-
- public void setCodec(ProtocolCodecFactory codec) {
- this.codec = codec;
- }
-
- public String getEncoding() {
- return encoding;
- }
-
- public void setEncoding(String encoding) {
- this.encoding = encoding;
- }
-
- public long getTimeout() {
- return timeout;
- }
-
- public void setTimeout(long timeout) {
- this.timeout = timeout;
- }
-
- public Boolean getLazySessionCreation() {
- return lazySessionCreation;
- }
-
- public void setLazySessionCreation(Boolean lazySessionCreation) {
- this.lazySessionCreation = lazySessionCreation;
- }
-
- public Boolean getTransferExchange() {
- return transferExchange;
- }
-
- public void setTransferExchange(Boolean transferExchange) {
- this.transferExchange = transferExchange;
- }
-
- public Integer getEncoderMaxLineLength() {
- return encoderMaxLineLength;
- }
-
- public void setEncoderMaxLineLength(Integer encoderMaxLineLength) {
- this.encoderMaxLineLength = encoderMaxLineLength;
- }
-
- public Integer getDecoderMaxLineLength() {
- return decoderMaxLineLength;
- }
-
- public void setDecoderMaxLineLength(Integer decoderMaxLineLength) {
- this.decoderMaxLineLength = decoderMaxLineLength;
- }
-
- public Boolean getMinaLogger() {
- return minaLogger;
- }
-
- public void setMinaLogger(Boolean minaLogger) {
- this.minaLogger = minaLogger;
- }
-
- public List<IoFilter> getFilters() {
- return filters;
- }
-
- public void setFilters(List<IoFilter> filters) {
- this.filters = filters;
- }
-
- public Boolean getAllowDefaultCodec() {
- return allowDefaultCodec;
- }
-
- public void setAllowDefaultCodec(Boolean allowDefaultCodec) {
- this.allowDefaultCodec = allowDefaultCodec;
- }
-
- public Boolean getDisconnect() {
- return disconnect;
- }
-
- public void setDisconnect(Boolean disconnect) {
- this.disconnect = disconnect;
- }
-
- public Boolean getDisconnectOnNoReply() {
- return disconnectOnNoReply;
- }
-
- public void setDisconnectOnNoReply(Boolean disconnectOnNoReply) {
- this.disconnectOnNoReply = disconnectOnNoReply;
- }
-
- public LoggingLevel getNoReplyLogLevel() {
- return noReplyLogLevel;
- }
-
- public void setNoReplyLogLevel(LoggingLevel noReplyLogLevel) {
- this.noReplyLogLevel = noReplyLogLevel;
- }
-
- public SSLContextParameters getSslContextParameters() {
- return sslContextParameters;
- }
-
- public void setSslContextParameters(
- SSLContextParameters sslContextParameters) {
- this.sslContextParameters = sslContextParameters;
- }
-
- public Boolean getAutoStartTls() {
- return autoStartTls;
- }
-
- public void setAutoStartTls(Boolean autoStartTls) {
- this.autoStartTls = autoStartTls;
- }
-
- public Integer getMaximumPoolSize() {
- return maximumPoolSize;
- }
-
- public void setMaximumPoolSize(Integer maximumPoolSize) {
- this.maximumPoolSize = maximumPoolSize;
- }
-
- public Boolean getOrderedThreadPoolExecutor() {
- return orderedThreadPoolExecutor;
- }
-
- public void setOrderedThreadPoolExecutor(Boolean orderedThreadPoolExecutor) {
- this.orderedThreadPoolExecutor = orderedThreadPoolExecutor;
- }
-
- public Boolean getCachedAddress() {
- return cachedAddress;
- }
-
- public void setCachedAddress(Boolean cachedAddress) {
- this.cachedAddress = cachedAddress;
- }
-
- public Boolean getClientMode() {
- return clientMode;
- }
-
- public void setClientMode(Boolean clientMode) {
- this.clientMode = clientMode;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mina2/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/main/resources/META-INF/spring.factories b/components/camel-mina2/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index b398489..0000000
--- a/components/camel-mina2/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.mina2.springboot.Mina2ComponentAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentAutoConfiguration.java b/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentAutoConfiguration.java
deleted file mode 100644
index 59767c4..0000000
--- a/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentAutoConfiguration.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.mqtt.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.mqtt.MQTTComponent;
-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(MQTTComponentConfiguration.class)
-public class MQTTComponentAutoConfiguration {
-
- @Bean(name = "mqtt-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MQTTComponent.class)
- public MQTTComponent configureMQTTComponent(CamelContext camelContext,
- MQTTComponentConfiguration configuration) throws Exception {
- MQTTComponent component = new MQTTComponent();
- 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-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentConfiguration.java b/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentConfiguration.java
deleted file mode 100644
index 82e5504..0000000
--- a/components/camel-mqtt/src/main/java/org/apache/camel/component/mqtt/springboot/MQTTComponentConfiguration.java
+++ /dev/null
@@ -1,67 +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.mqtt.springboot;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Component for communicating with MQTT M2M message brokers using FuseSource
- * MQTT Client.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.mqtt")
-public class MQTTComponentConfiguration {
-
- /**
- * The URI of the MQTT broker to connect too - this component also supports
- * SSL - e.g. ssl://127.0.0.1:8883
- */
- private String host;
- /**
- * Username to be used for authentication against the MQTT broker
- */
- private String userName;
- /**
- * Password to be used for authentication against the MQTT broker
- */
- private String password;
-
- public String getHost() {
- return host;
- }
-
- public void setHost(String host) {
- this.host = host;
- }
-
- 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;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mqtt/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-mqtt/src/main/resources/META-INF/spring.factories b/components/camel-mqtt/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index 6d3291e..0000000
--- a/components/camel-mqtt/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.mqtt.springboot.MQTTComponentAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentAutoConfiguration.java b/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentAutoConfiguration.java
deleted file mode 100644
index 491f2e1..0000000
--- a/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentAutoConfiguration.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.validator.msv.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.validator.msv.MsvComponent;
-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(MsvComponentConfiguration.class)
-public class MsvComponentAutoConfiguration {
-
- @Bean(name = "msv-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MsvComponent.class)
- public MsvComponent configureMsvComponent(CamelContext camelContext,
- MsvComponentConfiguration configuration) throws Exception {
- MsvComponent component = new MsvComponent();
- 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-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentConfiguration.java b/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentConfiguration.java
deleted file mode 100644
index 71454bd..0000000
--- a/components/camel-msv/src/main/java/org/apache/camel/component/validator/msv/springboot/MsvComponentConfiguration.java
+++ /dev/null
@@ -1,57 +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.validator.msv.springboot;
-
-import javax.xml.validation.SchemaFactory;
-import org.apache.camel.component.validator.ValidatorResourceResolverFactory;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Validates the payload of a message using the MSV Library.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.msv")
-public class MsvComponentConfiguration {
-
- /**
- * To use the javax.xml.validation.SchemaFactory.
- */
- private SchemaFactory schemaFactory;
- /**
- * To use a custom LSResourceResolver which depends on a dynamic endpoint
- * resource URI
- */
- private ValidatorResourceResolverFactory resourceResolverFactory;
-
- public SchemaFactory getSchemaFactory() {
- return schemaFactory;
- }
-
- public void setSchemaFactory(SchemaFactory schemaFactory) {
- this.schemaFactory = schemaFactory;
- }
-
- public ValidatorResourceResolverFactory getResourceResolverFactory() {
- return resourceResolverFactory;
- }
-
- public void setResourceResolverFactory(
- ValidatorResourceResolverFactory resourceResolverFactory) {
- this.resourceResolverFactory = resourceResolverFactory;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-msv/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-msv/src/main/resources/META-INF/spring.factories b/components/camel-msv/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index 67c3681..0000000
--- a/components/camel-msv/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.validator.msv.springboot.MsvComponentAutoConfiguration
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentAutoConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentAutoConfiguration.java b/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentAutoConfiguration.java
deleted file mode 100644
index ae06419..0000000
--- a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentAutoConfiguration.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.mustache.springboot;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.mustache.MustacheComponent;
-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(MustacheComponentConfiguration.class)
-public class MustacheComponentAutoConfiguration {
-
- @Bean(name = "mustache-component")
- @ConditionalOnClass(CamelContext.class)
- @ConditionalOnMissingBean(MustacheComponent.class)
- public MustacheComponent configureMustacheComponent(
- CamelContext camelContext,
- MustacheComponentConfiguration configuration) throws Exception {
- MustacheComponent component = new MustacheComponent();
- 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-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentConfiguration.java b/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentConfiguration.java
deleted file mode 100644
index 2f789e3..0000000
--- a/components/camel-mustache/src/main/java/org/apache/camel/component/mustache/springboot/MustacheComponentConfiguration.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.mustache.springboot;
-
-import com.github.mustachejava.MustacheFactory;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * Transforms the message using a Mustache template.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@ConfigurationProperties(prefix = "camel.component.mustache")
-public class MustacheComponentConfiguration {
-
- /**
- * To use a custom MustacheFactory
- */
- private MustacheFactory mustacheFactory;
-
- public MustacheFactory getMustacheFactory() {
- return mustacheFactory;
- }
-
- public void setMustacheFactory(MustacheFactory mustacheFactory) {
- this.mustacheFactory = mustacheFactory;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-mustache/src/main/resources/META-INF/spring.factories
----------------------------------------------------------------------
diff --git a/components/camel-mustache/src/main/resources/META-INF/spring.factories b/components/camel-mustache/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index 0a3fb76..0000000
--- a/components/camel-mustache/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.mustache.springboot.MustacheComponentAutoConfiguration