http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-slack/src/main/java/org/apache/camel/component/slack/springboot/SlackComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/springboot/SlackComponentConfiguration.java b/components/camel-slack/src/main/java/org/apache/camel/component/slack/springboot/SlackComponentConfiguration.java deleted file mode 100644 index 59ceb03..0000000 --- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/springboot/SlackComponentConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.slack.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The slack component allows you to send messages to Slack. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.slack") -public class SlackComponentConfiguration { - - /** - * The incoming webhook URL - */ - private String webhookUrl; - - public String getWebhookUrl() { - return webhookUrl; - } - - public void setWebhookUrl(String webhookUrl) { - this.webhookUrl = webhookUrl; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-slack/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-slack/src/main/resources/META-INF/spring.factories b/components/camel-slack/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3be2452..0000000 --- a/components/camel-slack/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.slack.springboot.SlackComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentAutoConfiguration.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentAutoConfiguration.java deleted file mode 100644 index d4b4816..0000000 --- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentAutoConfiguration.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.smpp.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.smpp.SmppComponent; -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(SmppComponentConfiguration.class) -public class SmppComponentAutoConfiguration { - - @Bean(name = {"smpp-component", "smpps-component"}) - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SmppComponent.class) - public SmppComponent configureSmppComponent(CamelContext camelContext, - SmppComponentConfiguration configuration) throws Exception { - SmppComponent component = new SmppComponent(); - 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-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentConfiguration.java b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentConfiguration.java deleted file mode 100644 index f7d9cc8..0000000 --- a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/springboot/SmppComponentConfiguration.java +++ /dev/null @@ -1,539 +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.smpp.springboot; - -import java.util.Map; -import org.apache.camel.component.smpp.SmppConfiguration; -import org.apache.camel.component.smpp.SmppSplittingPolicy; -import org.jsmpp.session.SessionStateListener; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * To send and receive SMS using a SMSC (Short Message Service Center). - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.smpp") -public class SmppComponentConfiguration { - - /** - * To use the shared SmppConfiguration as configuration. Properties of the - * shared configuration can also be set individually. - */ - private SmppConfiguration configuration; - /** - * Hostname for the SMSC server to use. - */ - private String host; - /** - * Port number for the SMSC server to use. - */ - private Integer port; - /** - * The system id (username) for connecting to SMSC server. - */ - private String systemId; - /** - * Defines the data coding according the SMPP 3.4 specification section - * 5.2.19. Example data encodings are: 0: SMSC Default Alphabet 3: Latin 1 - * (ISO-8859-1) 4: Octet unspecified (8-bit binary) 8: UCS2 (ISO/IEC-10646) - * 13: Extended Kanji JIS(X 0212-1990) - */ - private Byte dataCoding; - /** - * Defines encoding of data according the SMPP 3.4 specification section - * 5.2.19. 0: SMSC Default Alphabet 4: 8 bit Alphabet 8: UCS2 Alphabet - */ - private Byte alphabet; - /** - * Defines the encoding scheme of the short message user data. Only for - * SubmitSm ReplaceSm and SubmitMulti. - */ - private String encoding; - /** - * The password for connecting to SMSC server. - */ - private String password; - /** - * Defines the interval in milliseconds between the confidence checks. The - * confidence check is used to test the communication path between an ESME - * and an SMSC. - */ - private Integer enquireLinkTimer; - /** - * Defines the maximum period of inactivity allowed after a transaction - * after which an SMPP entity may assume that the session is no longer - * active. This timer may be active on either communicating SMPP entity - * (i.e. SMSC or ESME). - */ - private Integer transactionTimer; - /** - * This parameter is used to categorize the type of ESME (External Short - * Message Entity) that is binding to the SMSC (max. 13 characters). - */ - private String systemType; - /** - * Is used to request an SMSC delivery receipt and/or SME originated - * acknowledgements. The following values are defined: 0: No SMSC delivery - * receipt requested. 1: SMSC delivery receipt requested where final - * delivery outcome is success or failure. 2: SMSC delivery receipt - * requested where the final delivery outcome is delivery failure. - */ - private Byte registeredDelivery; - /** - * The service type parameter can be used to indicate the SMS Application - * service associated with the message. The following generic service_types - * are defined: CMT: Cellular Messaging CPT: Cellular Paging VMN: Voice Mail - * Notification VMA: Voice Mail Alerting WAP: Wireless Application Protocol - * USSD: Unstructured Supplementary Services Data - */ - private String serviceType; - /** - * Defines the type of number (TON) to be used in the SME originator address - * parameters. The following TON values are defined: 0: Unknown 1: - * International 2: National 3: Network Specific 4: Subscriber Number 5: - * Alphanumeric 6: Abbreviated - */ - private Byte sourceAddrTon; - /** - * Defines the type of number (TON) to be used in the SME destination - * address parameters. Only for SubmitSm SubmitMulti CancelSm and DataSm. - * The following TON values are defined: 0: Unknown 1: International 2: - * National 3: Network Specific 4: Subscriber Number 5: Alphanumeric 6: - * Abbreviated - */ - private Byte destAddrTon; - /** - * Defines the numeric plan indicator (NPI) to be used in the SME originator - * address parameters. The following NPI values are defined: 0: Unknown 1: - * ISDN (E163/E164) 2: Data (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) - * 8: National 9: Private 10: ERMES 13: Internet (IP) 18: WAP Client Id (to - * be defined by WAP Forum) - */ - private Byte sourceAddrNpi; - /** - * Defines the type of number (TON) to be used in the SME destination - * address parameters. Only for SubmitSm SubmitMulti CancelSm and DataSm. - * The following NPI values are defined: 0: Unknown 1: ISDN (E163/E164) 2: - * Data (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) 8: National 9: - * Private 10: ERMES 13: Internet (IP) 18: WAP Client Id (to be defined by - * WAP Forum) - */ - private Byte destAddrNpi; - /** - * The protocol id - */ - private Byte protocolId; - /** - * Allows the originating SME to assign a priority level to the short - * message. Only for SubmitSm and SubmitMulti. Four Priority Levels are - * supported: 0: Level 0 (lowest) priority 1: Level 1 priority 2: Level 2 - * priority 3: Level 3 (highest) priority - */ - private Byte priorityFlag; - /** - * Used to request the SMSC to replace a previously submitted message that - * is still pending delivery. The SMSC will replace an existing message - * provided that the source address destination address and service type - * match the same fields in the new message. The following replace if - * present flag values are defined: 0: Don't replace 1: Replace - */ - private Byte replaceIfPresentFlag; - /** - * Defines the address of SME (Short Message Entity) which originated this - * message. - */ - private String sourceAddr; - /** - * Defines the destination SME address. For mobile terminated messages this - * is the directory number of the recipient MS. Only for SubmitSm - * SubmitMulti CancelSm and DataSm. - */ - private String destAddr; - /** - * Defines the type of number (TON) to be used in the SME. The following TON - * values are defined: 0: Unknown 1: International 2: National 3: Network - * Specific 4: Subscriber Number 5: Alphanumeric 6: Abbreviated - */ - private Byte typeOfNumber; - /** - * Defines the numeric plan indicator (NPI) to be used in the SME. The - * following NPI values are defined: 0: Unknown 1: ISDN (E163/E164) 2: Data - * (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) 8: National 9: Private 10: - * ERMES 13: Internet (IP) 18: WAP Client Id (to be defined by WAP Forum) - */ - private Byte numberingPlanIndicator; - /** - * Whether using SSL with the smpps protocol - */ - private Boolean usingSSL; - /** - * Defines the initial delay in milliseconds after the consumer/producer - * tries to reconnect to the SMSC after the connection was lost. - */ - private long initialReconnectDelay; - /** - * Defines the interval in milliseconds between the reconnect attempts if - * the connection to the SMSC was lost and the previous was not succeed. - */ - private long reconnectDelay; - /** - * Sessions can be lazily created to avoid exceptions if the SMSC is not - * available when the Camel producer is started. Camel will check the in - * message headers 'CamelSmppSystemId' and 'CamelSmppPassword' of the first - * exchange. If they are present Camel will use these data to connect to the - * SMSC. - */ - private Boolean lazySessionCreation; - /** - * If you need to tunnel SMPP through a HTTP proxy set this attribute to the - * hostname or ip address of your HTTP proxy. - */ - private String httpProxyHost; - /** - * If you need to tunnel SMPP through a HTTP proxy set this attribute to the - * port of your HTTP proxy. - */ - private Integer httpProxyPort; - /** - * If your HTTP proxy requires basic authentication set this attribute to - * the username required for your HTTP proxy. - */ - private String httpProxyUsername; - /** - * If your HTTP proxy requires basic authentication set this attribute to - * the password required for your HTTP proxy. - */ - private String httpProxyPassword; - /** - * You can refer to a org.jsmpp.session.SessionStateListener in the Registry - * to receive callbacks when the session state changed. - */ - private SessionStateListener sessionStateListener; - /** - * You can specify the address range for the SmppConsumer as defined in - * section 5.2.7 of the SMPP 3.4 specification. The SmppConsumer will - * receive messages only from SMSC's which target an address (MSISDN or IP - * address) within this range. - */ - private String addressRange; - /** - * You can specify a policy for handling long messages: ALLOW - the default - * long messages are split to 140 bytes per message TRUNCATE - long messages - * are split and only the first fragment will be sent to the SMSC. Some - * carriers drop subsequent fragments so this reduces load on the SMPP - * connection sending parts of a message that will never be delivered. - * REJECT - if a message would need to be split it is rejected with an SMPP - * NegativeResponseException and the reason code signifying the message is - * too long. - */ - private SmppSplittingPolicy splittingPolicy; - /** - * These headers will be passed to the proxy server while establishing the - * connection. - */ - private Map<String, String> proxyHeaders; - - public SmppConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(SmppConfiguration 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 getSystemId() { - return systemId; - } - - public void setSystemId(String systemId) { - this.systemId = systemId; - } - - public Byte getDataCoding() { - return dataCoding; - } - - public void setDataCoding(Byte dataCoding) { - this.dataCoding = dataCoding; - } - - public Byte getAlphabet() { - return alphabet; - } - - public void setAlphabet(Byte alphabet) { - this.alphabet = alphabet; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public Integer getEnquireLinkTimer() { - return enquireLinkTimer; - } - - public void setEnquireLinkTimer(Integer enquireLinkTimer) { - this.enquireLinkTimer = enquireLinkTimer; - } - - public Integer getTransactionTimer() { - return transactionTimer; - } - - public void setTransactionTimer(Integer transactionTimer) { - this.transactionTimer = transactionTimer; - } - - public String getSystemType() { - return systemType; - } - - public void setSystemType(String systemType) { - this.systemType = systemType; - } - - public Byte getRegisteredDelivery() { - return registeredDelivery; - } - - public void setRegisteredDelivery(Byte registeredDelivery) { - this.registeredDelivery = registeredDelivery; - } - - public String getServiceType() { - return serviceType; - } - - public void setServiceType(String serviceType) { - this.serviceType = serviceType; - } - - public Byte getSourceAddrTon() { - return sourceAddrTon; - } - - public void setSourceAddrTon(Byte sourceAddrTon) { - this.sourceAddrTon = sourceAddrTon; - } - - public Byte getDestAddrTon() { - return destAddrTon; - } - - public void setDestAddrTon(Byte destAddrTon) { - this.destAddrTon = destAddrTon; - } - - public Byte getSourceAddrNpi() { - return sourceAddrNpi; - } - - public void setSourceAddrNpi(Byte sourceAddrNpi) { - this.sourceAddrNpi = sourceAddrNpi; - } - - public Byte getDestAddrNpi() { - return destAddrNpi; - } - - public void setDestAddrNpi(Byte destAddrNpi) { - this.destAddrNpi = destAddrNpi; - } - - public Byte getProtocolId() { - return protocolId; - } - - public void setProtocolId(Byte protocolId) { - this.protocolId = protocolId; - } - - public Byte getPriorityFlag() { - return priorityFlag; - } - - public void setPriorityFlag(Byte priorityFlag) { - this.priorityFlag = priorityFlag; - } - - public Byte getReplaceIfPresentFlag() { - return replaceIfPresentFlag; - } - - public void setReplaceIfPresentFlag(Byte replaceIfPresentFlag) { - this.replaceIfPresentFlag = replaceIfPresentFlag; - } - - public String getSourceAddr() { - return sourceAddr; - } - - public void setSourceAddr(String sourceAddr) { - this.sourceAddr = sourceAddr; - } - - public String getDestAddr() { - return destAddr; - } - - public void setDestAddr(String destAddr) { - this.destAddr = destAddr; - } - - public Byte getTypeOfNumber() { - return typeOfNumber; - } - - public void setTypeOfNumber(Byte typeOfNumber) { - this.typeOfNumber = typeOfNumber; - } - - public Byte getNumberingPlanIndicator() { - return numberingPlanIndicator; - } - - public void setNumberingPlanIndicator(Byte numberingPlanIndicator) { - this.numberingPlanIndicator = numberingPlanIndicator; - } - - public Boolean getUsingSSL() { - return usingSSL; - } - - public void setUsingSSL(Boolean usingSSL) { - this.usingSSL = usingSSL; - } - - public long getInitialReconnectDelay() { - return initialReconnectDelay; - } - - public void setInitialReconnectDelay(long initialReconnectDelay) { - this.initialReconnectDelay = initialReconnectDelay; - } - - public long getReconnectDelay() { - return reconnectDelay; - } - - public void setReconnectDelay(long reconnectDelay) { - this.reconnectDelay = reconnectDelay; - } - - public Boolean getLazySessionCreation() { - return lazySessionCreation; - } - - public void setLazySessionCreation(Boolean lazySessionCreation) { - this.lazySessionCreation = lazySessionCreation; - } - - public String getHttpProxyHost() { - return httpProxyHost; - } - - public void setHttpProxyHost(String httpProxyHost) { - this.httpProxyHost = httpProxyHost; - } - - public Integer getHttpProxyPort() { - return httpProxyPort; - } - - public void setHttpProxyPort(Integer httpProxyPort) { - this.httpProxyPort = httpProxyPort; - } - - public String getHttpProxyUsername() { - return httpProxyUsername; - } - - public void setHttpProxyUsername(String httpProxyUsername) { - this.httpProxyUsername = httpProxyUsername; - } - - public String getHttpProxyPassword() { - return httpProxyPassword; - } - - public void setHttpProxyPassword(String httpProxyPassword) { - this.httpProxyPassword = httpProxyPassword; - } - - public SessionStateListener getSessionStateListener() { - return sessionStateListener; - } - - public void setSessionStateListener( - SessionStateListener sessionStateListener) { - this.sessionStateListener = sessionStateListener; - } - - public String getAddressRange() { - return addressRange; - } - - public void setAddressRange(String addressRange) { - this.addressRange = addressRange; - } - - public SmppSplittingPolicy getSplittingPolicy() { - return splittingPolicy; - } - - public void setSplittingPolicy(SmppSplittingPolicy splittingPolicy) { - this.splittingPolicy = splittingPolicy; - } - - public Map<String, String> getProxyHeaders() { - return proxyHeaders; - } - - public void setProxyHeaders(Map<String, String> proxyHeaders) { - this.proxyHeaders = proxyHeaders; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-smpp/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-smpp/src/main/resources/META-INF/spring.factories b/components/camel-smpp/src/main/resources/META-INF/spring.factories deleted file mode 100644 index e3c2d51..0000000 --- a/components/camel-smpp/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.smpp.springboot.SmppComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java deleted file mode 100644 index b51fc19..0000000 --- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.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.snakeyaml.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat; -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(SnakeYAMLDataFormatConfiguration.class) -public class SnakeYAMLDataFormatAutoConfiguration { - - @Bean(name = "yaml-snakeyaml-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SnakeYAMLDataFormat.class) - public SnakeYAMLDataFormat configureSnakeYAMLDataFormat( - CamelContext camelContext, - SnakeYAMLDataFormatConfiguration configuration) throws Exception { - SnakeYAMLDataFormat dataformat = new SnakeYAMLDataFormat(); - 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-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java deleted file mode 100644 index ce78189..0000000 --- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java +++ /dev/null @@ -1,129 +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.snakeyaml.springboot; - -import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat; -import org.apache.camel.model.dataformat.YAMLLibrary; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel SnakeYAML support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.yaml-snakeyaml") -public class SnakeYAMLDataFormatConfiguration { - - /** - * Which yaml library to use such. Is by default SnakeYAML - */ - private YAMLLibrary library = YAMLLibrary.SnakeYAML; - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * BaseConstructor to construct incoming documents. - */ - private String constructor; - /** - * Representer to emit outgoing objects. - */ - private String representer; - /** - * DumperOptions to configure outgoing objects. - */ - private String dumperOptions; - /** - * Resolver to detect implicit type - */ - private String resolver; - /** - * Use ApplicationContextClassLoader as custom ClassLoader - */ - private Boolean useApplicationContextClassLoader = true; - /** - * Force the emitter to produce a pretty YAML document when using the flow - * style. - */ - private Boolean prettyFlow = false; - - public YAMLLibrary getLibrary() { - return library; - } - - public void setLibrary(YAMLLibrary library) { - this.library = library; - } - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public String getConstructor() { - return constructor; - } - - public void setConstructor(String constructor) { - this.constructor = constructor; - } - - public String getRepresenter() { - return representer; - } - - public void setRepresenter(String representer) { - this.representer = representer; - } - - public String getDumperOptions() { - return dumperOptions; - } - - public void setDumperOptions(String dumperOptions) { - this.dumperOptions = dumperOptions; - } - - public String getResolver() { - return resolver; - } - - public void setResolver(String resolver) { - this.resolver = resolver; - } - - public Boolean getUseApplicationContextClassLoader() { - return useApplicationContextClassLoader; - } - - public void setUseApplicationContextClassLoader( - Boolean useApplicationContextClassLoader) { - this.useApplicationContextClassLoader = useApplicationContextClassLoader; - } - - public Boolean getPrettyFlow() { - return prettyFlow; - } - - public void setPrettyFlow(Boolean prettyFlow) { - this.prettyFlow = prettyFlow; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-snakeyaml/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-snakeyaml/src/main/resources/META-INF/spring.factories b/components/camel-snakeyaml/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3054d7e..0000000 --- a/components/camel-snakeyaml/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.snakeyaml.springboot.SnakeYAMLDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java deleted file mode 100644 index b703e06..0000000 --- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.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.soap.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.soap.SoapJaxbDataFormat; -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(SoapJaxbDataFormatConfiguration.class) -public class SoapJaxbDataFormatAutoConfiguration { - - @Bean(name = "soapjaxb-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SoapJaxbDataFormat.class) - public SoapJaxbDataFormat configureSoapJaxbDataFormat( - CamelContext camelContext, - SoapJaxbDataFormatConfiguration configuration) throws Exception { - SoapJaxbDataFormat dataformat = new SoapJaxbDataFormat(); - 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-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java deleted file mode 100644 index 4acfcf1..0000000 --- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java +++ /dev/null @@ -1,122 +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.soap.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel SOAP support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.soapjaxb") -public class SoapJaxbDataFormatConfiguration { - - /** - * Package name where your JAXB classes are located. - */ - private String contextPath; - /** - * To overrule and use a specific encoding - */ - private String encoding; - /** - * Refers to an element strategy to lookup from the registry. An element - * name strategy is used for two purposes. The first is to find a xml - * element name for a given object and soap action when marshaling the - * object into a SOAP message. The second is to find an Exception class for - * a given soap fault name. The following three element strategy class name - * is provided out of the box. QNameStrategy - Uses a fixed qName that is - * configured on instantiation. Exception lookup is not supported - * TypeNameStrategy - Uses the name and namespace from the XMLType - * annotation of the given type. If no namespace is set then package-info is - * used. Exception lookup is not supported ServiceInterfaceStrategy - Uses - * information from a webservice interface to determine the type name and to - * find the exception class for a SOAP fault All three classes is located in - * the package name org.apache.camel.dataformat.soap.name If you have - * generated the web service stub code with cxf-codegen or a similar tool - * then you probably will want to use the ServiceInterfaceStrategy. In the - * case you have no annotated service interface you should use QNameStrategy - * or TypeNameStrategy. - */ - private String elementNameStrategyRef; - /** - * SOAP version should either be 1.1 or 1.2. Is by default 1.1 - */ - private String version; - /** - * When marshalling using JAXB or SOAP then the JAXB implementation will - * automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control - * this mapping Camel allows you to refer to a map which contains the - * desired mapping. - */ - private String namespacePrefixRef; - /** - * To validate against an existing schema. Your can use the prefix - * classpath: file: or http: to specify how the resource should by resolved. - * You can separate multiple schema files by using the '' character. - */ - private String schema; - - public String getContextPath() { - return contextPath; - } - - public void setContextPath(String contextPath) { - this.contextPath = contextPath; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public String getElementNameStrategyRef() { - return elementNameStrategyRef; - } - - public void setElementNameStrategyRef(String elementNameStrategyRef) { - this.elementNameStrategyRef = elementNameStrategyRef; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getNamespacePrefixRef() { - return namespacePrefixRef; - } - - public void setNamespacePrefixRef(String namespacePrefixRef) { - this.namespacePrefixRef = namespacePrefixRef; - } - - public String getSchema() { - return schema; - } - - public void setSchema(String schema) { - this.schema = schema; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-soap/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/resources/META-INF/spring.factories b/components/camel-soap/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f025adf..0000000 --- a/components/camel-soap/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.soap.springboot.SoapJaxbDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentAutoConfiguration.java b/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentAutoConfiguration.java deleted file mode 100644 index 0c946cd..0000000 --- a/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentAutoConfiguration.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.sparkrest.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.sparkrest.SparkComponent; -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(SparkComponentConfiguration.class) -public class SparkComponentAutoConfiguration { - - @Bean(name = "spark-rest-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SparkComponent.class) - public SparkComponent configureSparkComponent(CamelContext camelContext, - SparkComponentConfiguration configuration) throws Exception { - SparkComponent component = new SparkComponent(); - 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-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentConfiguration.java b/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentConfiguration.java deleted file mode 100644 index be99251..0000000 --- a/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/springboot/SparkComponentConfiguration.java +++ /dev/null @@ -1,166 +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.sparkrest.springboot; - -import org.apache.camel.component.sparkrest.SparkBinding; -import org.apache.camel.component.sparkrest.SparkConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The spark-rest component is used for hosting REST services which has been - * defined using Camel rest-dsl. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.spark-rest") -public class SparkComponentConfiguration { - - /** - * Port number. Will by default use 4567 - */ - private Integer port; - /** - * Set the IP address that Spark should listen on. If not called the default - * address is '0.0.0.0'. - */ - private String ipAddress; - /** - * Minimum number of threads in Spark thread-pool (shared globally) - */ - private Integer minThreads; - /** - * Maximum number of threads in Spark thread-pool (shared globally) - */ - private Integer maxThreads; - /** - * Thread idle timeout in millis where threads that has been idle for a - * longer period will be terminated from the thread pool - */ - private Integer timeOutMillis; - /** - * Configures connection to be secure to use the keystore file - */ - private String keystoreFile; - /** - * Configures connection to be secure to use the keystore password - */ - private String keystorePassword; - /** - * Configures connection to be secure to use the truststore file - */ - private String truststoreFile; - /** - * Configures connection to be secure to use the truststore password - */ - private String truststorePassword; - /** - * To use the shared SparkConfiguration - */ - private SparkConfiguration sparkConfiguration; - /** - * To use a custom SparkBinding to map to/from Camel message. - */ - private SparkBinding sparkBinding; - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getIpAddress() { - return ipAddress; - } - - public void setIpAddress(String ipAddress) { - this.ipAddress = ipAddress; - } - - public Integer getMinThreads() { - return minThreads; - } - - public void setMinThreads(Integer minThreads) { - this.minThreads = minThreads; - } - - public Integer getMaxThreads() { - return maxThreads; - } - - public void setMaxThreads(Integer maxThreads) { - this.maxThreads = maxThreads; - } - - public Integer getTimeOutMillis() { - return timeOutMillis; - } - - public void setTimeOutMillis(Integer timeOutMillis) { - this.timeOutMillis = timeOutMillis; - } - - public String getKeystoreFile() { - return keystoreFile; - } - - public void setKeystoreFile(String keystoreFile) { - this.keystoreFile = keystoreFile; - } - - public String getKeystorePassword() { - return keystorePassword; - } - - public void setKeystorePassword(String keystorePassword) { - this.keystorePassword = keystorePassword; - } - - public String getTruststoreFile() { - return truststoreFile; - } - - public void setTruststoreFile(String truststoreFile) { - this.truststoreFile = truststoreFile; - } - - public String getTruststorePassword() { - return truststorePassword; - } - - public void setTruststorePassword(String truststorePassword) { - this.truststorePassword = truststorePassword; - } - - public SparkConfiguration getSparkConfiguration() { - return sparkConfiguration; - } - - public void setSparkConfiguration(SparkConfiguration sparkConfiguration) { - this.sparkConfiguration = sparkConfiguration; - } - - public SparkBinding getSparkBinding() { - return sparkBinding; - } - - public void setSparkBinding(SparkBinding sparkBinding) { - this.sparkBinding = sparkBinding; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spark-rest/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-spark-rest/src/main/resources/META-INF/spring.factories b/components/camel-spark-rest/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9f7f38a..0000000 --- a/components/camel-spark-rest/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.sparkrest.springboot.SparkComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentAutoConfiguration.java b/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentAutoConfiguration.java deleted file mode 100644 index 0f6e970..0000000 --- a/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentAutoConfiguration.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.spark.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.spark.SparkComponent; -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(SparkComponentConfiguration.class) -public class SparkComponentAutoConfiguration { - - @Bean(name = "spark-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SparkComponent.class) - public SparkComponent configureSparkComponent(CamelContext camelContext, - SparkComponentConfiguration configuration) throws Exception { - SparkComponent component = new SparkComponent(); - 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-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentConfiguration.java b/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentConfiguration.java deleted file mode 100644 index eedf908..0000000 --- a/components/camel-spark/src/main/java/org/apache/camel/component/spark/springboot/SparkComponentConfiguration.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.component.spark.springboot; - -import org.apache.camel.component.spark.RddCallback; -import org.apache.spark.api.java.JavaRDDLike; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The spark component can be used to send RDD or DataFrame jobs to Apache Spark - * cluster. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.spark") -public class SparkComponentConfiguration { - - /** - * RDD to compute against. - */ - private JavaRDDLike rdd; - /** - * Function performing action against an RDD. - */ - private RddCallback rddCallback; - - public JavaRDDLike getRdd() { - return rdd; - } - - public void setRdd(JavaRDDLike rdd) { - this.rdd = rdd; - } - - public RddCallback getRddCallback() { - return rddCallback; - } - - public void setRddCallback(RddCallback rddCallback) { - this.rddCallback = rddCallback; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spark/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-spark/src/main/resources/META-INF/spring.factories b/components/camel-spark/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 744a7bf..0000000 --- a/components/camel-spark/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.spark.springboot.SparkComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentAutoConfiguration.java b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentAutoConfiguration.java deleted file mode 100644 index 8a968eb..0000000 --- a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentAutoConfiguration.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.splunk.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.splunk.SplunkComponent; -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(SplunkComponentConfiguration.class) -public class SplunkComponentAutoConfiguration { - - @Bean(name = "splunk-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SplunkComponent.class) - public SplunkComponent configureSplunkComponent(CamelContext camelContext, - SplunkComponentConfiguration configuration) throws Exception { - SplunkComponent component = new SplunkComponent(); - 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-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentConfiguration.java b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentConfiguration.java deleted file mode 100644 index 2100393..0000000 --- a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/springboot/SplunkComponentConfiguration.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.splunk.springboot; - -import org.apache.camel.component.splunk.SplunkConfigurationFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The splunk component allows to publish or search for events in Splunk. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.splunk") -public class SplunkComponentConfiguration { - - /** - * To use the SplunkConfigurationFactory - */ - private SplunkConfigurationFactory splunkConfigurationFactory; - - public SplunkConfigurationFactory getSplunkConfigurationFactory() { - return splunkConfigurationFactory; - } - - public void setSplunkConfigurationFactory( - SplunkConfigurationFactory splunkConfigurationFactory) { - this.splunkConfigurationFactory = splunkConfigurationFactory; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-splunk/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-splunk/src/main/resources/META-INF/spring.factories b/components/camel-splunk/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f508243..0000000 --- a/components/camel-splunk/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.splunk.springboot.SplunkComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentAutoConfiguration.java b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentAutoConfiguration.java deleted file mode 100644 index 3ffd8c6..0000000 --- a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentAutoConfiguration.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.spring.batch.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.spring.batch.SpringBatchComponent; -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(SpringBatchComponentConfiguration.class) -public class SpringBatchComponentAutoConfiguration { - - @Bean(name = "spring-batch-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SpringBatchComponent.class) - public SpringBatchComponent configureSpringBatchComponent( - CamelContext camelContext, - SpringBatchComponentConfiguration configuration) throws Exception { - SpringBatchComponent component = new SpringBatchComponent(); - 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-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentConfiguration.java b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentConfiguration.java deleted file mode 100644 index 36914a5..0000000 --- a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/springboot/SpringBatchComponentConfiguration.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.component.spring.batch.springboot; - -import org.springframework.batch.core.configuration.JobRegistry; -import org.springframework.batch.core.launch.JobLauncher; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The spring-batch component allows to send messages to Spring Batch for - * further processing. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.spring-batch") -public class SpringBatchComponentConfiguration { - - /** - * Explicitly specifies a JobLauncher to be used. - */ - private JobLauncher jobLauncher; - /** - * Explicitly specifies a JobRegistry to be used. - */ - private JobRegistry jobRegistry; - - public JobLauncher getJobLauncher() { - return jobLauncher; - } - - public void setJobLauncher(JobLauncher jobLauncher) { - this.jobLauncher = jobLauncher; - } - - public JobRegistry getJobRegistry() { - return jobRegistry; - } - - public void setJobRegistry(JobRegistry jobRegistry) { - this.jobRegistry = jobRegistry; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring-batch/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-spring-batch/src/main/resources/META-INF/spring.factories b/components/camel-spring-batch/src/main/resources/META-INF/spring.factories deleted file mode 100644 index e3c5109..0000000 --- a/components/camel-spring-batch/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.spring.batch.springboot.SpringBatchComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentAutoConfiguration.java b/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentAutoConfiguration.java deleted file mode 100644 index 38e9000..0000000 --- a/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentAutoConfiguration.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.event.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.event.EventComponent; -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(EventComponentConfiguration.class) -public class EventComponentAutoConfiguration { - - @Bean(name = "spring-event-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(EventComponent.class) - public EventComponent configureEventComponent(CamelContext camelContext, - EventComponentConfiguration configuration) throws Exception { - EventComponent component = new EventComponent(); - 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-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentConfiguration.java b/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentConfiguration.java deleted file mode 100644 index a2cc856..0000000 --- a/components/camel-spring/src/main/java/org/apache/camel/component/event/springboot/EventComponentConfiguration.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.event.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.ApplicationContext; - -/** - * The spring-event component allows to listen for Spring Application Events. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.spring-event") -public class EventComponentConfiguration { - - /** - * The Spring ApplicationContext - */ - private ApplicationContext applicationContext; - - public ApplicationContext getApplicationContext() { - return applicationContext; - } - - public void setApplicationContext(ApplicationContext applicationContext) { - this.applicationContext = applicationContext; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageAutoConfiguration.java b/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageAutoConfiguration.java deleted file mode 100644 index 0d66bdf..0000000 --- a/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.spel.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.language.spel.SpelLanguage; -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(SpelLanguageConfiguration.class) -public class SpelLanguageAutoConfiguration { - - @Bean(name = "spel-language") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SpelLanguage.class) - public SpelLanguage configureSpelLanguage(CamelContext camelContext, - SpelLanguageConfiguration configuration) throws Exception { - SpelLanguage language = new SpelLanguage(); - if (language instanceof CamelContextAware) { - ((CamelContextAware) language).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), language, parameters); - return language; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageConfiguration.java b/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageConfiguration.java deleted file mode 100644 index b8dddfd..0000000 --- a/components/camel-spring/src/main/java/org/apache/camel/language/spel/springboot/SpelLanguageConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.spel.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For Spring Expression Language (SpEL) expressions and predicates - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.language.spel") -public class SpelLanguageConfiguration { - - /** - * Whether to trim the value to remove leading and trailing whitespaces and - * line breaks - */ - private Boolean trim = true; - - public Boolean getTrim() { - return trim; - } - - public void setTrim(Boolean trim) { - this.trim = trim; - } -} \ No newline at end of file