http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java deleted file mode 100644 index 49e244a..0000000 --- a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java +++ /dev/null @@ -1,208 +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.jacksonxml.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Jackson XML support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.jacksonxml") -public class JacksonXMLDataFormatConfiguration { - - /** - * Lookup and use the existing XmlMapper with the given id. - */ - private String xmlMapper; - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint = false; - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * When marshalling a POJO to JSON you might want to exclude certain fields - * from the JSON output. With Jackson you can use JSON views to accomplish - * this. This option is to refer to the class which has JsonView annotations - */ - private Class jsonView; - /** - * If you want to marshal a pojo to JSON and the pojo has some fields with - * null values. And you want to skip these null values you can set this - * option to NOT_NULL - */ - private String include; - /** - * Used for JMS users to allow the JMSType header from the JMS spec to - * specify a FQN classname to use to unmarshal to. - */ - private Boolean allowJmsType = false; - /** - * Refers to a custom collection type to lookup in the registry to use. This - * option should rarely be used but allows to use different collection types - * than java.util.Collection based as default. - */ - private String collectionTypeName; - /** - * To unarmshal to a List of Map or a List of Pojo. - */ - private Boolean useList = false; - /** - * Whether to enable the JAXB annotations module when using jackson. When - * enabled then JAXB annotations can be used by Jackson. - */ - private Boolean enableJaxbAnnotationModule = false; - /** - * To use custom Jackson modules com.fasterxml.jackson.databind.Module - * specified as a String with FQN class names. Multiple classes can be - * separated by comma. - */ - private String moduleClassNames; - /** - * To use custom Jackson modules referred from the Camel registry. Multiple - * modules can be separated by comma. - */ - private String moduleRefs; - /** - * Set of features to enable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String enableFeatures; - /** - * Set of features to disable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String disableFeatures; - - public String getXmlMapper() { - return xmlMapper; - } - - public void setXmlMapper(String xmlMapper) { - this.xmlMapper = xmlMapper; - } - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public Class getJsonView() { - return jsonView; - } - - public void setJsonView(Class jsonView) { - this.jsonView = jsonView; - } - - public String getInclude() { - return include; - } - - public void setInclude(String include) { - this.include = include; - } - - public Boolean getAllowJmsType() { - return allowJmsType; - } - - public void setAllowJmsType(Boolean allowJmsType) { - this.allowJmsType = allowJmsType; - } - - public String getCollectionTypeName() { - return collectionTypeName; - } - - public void setCollectionTypeName(String collectionTypeName) { - this.collectionTypeName = collectionTypeName; - } - - public Boolean getUseList() { - return useList; - } - - public void setUseList(Boolean useList) { - this.useList = useList; - } - - public Boolean getEnableJaxbAnnotationModule() { - return enableJaxbAnnotationModule; - } - - public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) { - this.enableJaxbAnnotationModule = enableJaxbAnnotationModule; - } - - public String getModuleClassNames() { - return moduleClassNames; - } - - public void setModuleClassNames(String moduleClassNames) { - this.moduleClassNames = moduleClassNames; - } - - public String getModuleRefs() { - return moduleRefs; - } - - public void setModuleRefs(String moduleRefs) { - this.moduleRefs = moduleRefs; - } - - public String getEnableFeatures() { - return enableFeatures; - } - - public void setEnableFeatures(String enableFeatures) { - this.enableFeatures = enableFeatures; - } - - public String getDisableFeatures() { - return disableFeatures; - } - - public void setDisableFeatures(String disableFeatures) { - this.disableFeatures = disableFeatures; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jacksonxml/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jacksonxml/src/main/resources/META-INF/spring.factories b/components/camel-jacksonxml/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4b51ccc..0000000 --- a/components/camel-jacksonxml/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.jacksonxml.springboot.JacksonXMLDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java deleted file mode 100644 index 846e518..0000000 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.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.converter.jaxb.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.converter.jaxb.JaxbDataFormat; -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(JaxbDataFormatConfiguration.class) -public class JaxbDataFormatAutoConfiguration { - - @Bean(name = "jaxb-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JaxbDataFormat.class) - public JaxbDataFormat configureJaxbDataFormat(CamelContext camelContext, - JaxbDataFormatConfiguration configuration) throws Exception { - JaxbDataFormat dataformat = new JaxbDataFormat(); - 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-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java deleted file mode 100644 index 267bc12..0000000 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java +++ /dev/null @@ -1,240 +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.converter.jaxb.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel JAXB support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.jaxb") -public class JaxbDataFormatConfiguration { - - /** - * Package name where your JAXB classes are located. - */ - private String contextPath; - /** - * 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; - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint = false; - /** - * Whether to allow using ObjectFactory classes to create the POJO classes - * during marshalling. This only applies to POJO classes that has not been - * annotated with JAXB and providing jaxb.index descriptor files. - */ - private Boolean objectFactory = false; - /** - * Whether to ignore JAXBElement elements - only needed to be set to false - * in very special use-cases. - */ - private Boolean ignoreJAXBElement = false; - /** - * Whether marhsalling must be java objects with JAXB annotations. And if - * not then it fails. This option can be set to false to relax that such as - * when the data is already in XML format. - */ - private Boolean mustBeJAXBElement = false; - /** - * To ignore non xml characheters and replace them with an empty space. - */ - private Boolean filterNonXmlChars = false; - /** - * To overrule and use a specific encoding - */ - private String encoding; - /** - * To turn on marshalling XML fragment trees. By default JAXB looks for - * XmlRootElement annotation on given class to operate on whole XML tree. - * This is useful but not always - sometimes generated code does not have - * XmlRootElement annotation sometimes you need unmarshall only part of - * tree. In that case you can use partial unmarshalling. To enable this - * behaviours you need set property partClass. Camel will pass this class to - * JAXB's unmarshaler. - */ - private Boolean fragment = false; - /** - * Name of class used for fragment parsing. See more details at the fragment - * option. - */ - private String partClass; - /** - * XML namespace to use for fragment parsing. See more details at the - * fragment option. - */ - private String partNamespace; - /** - * 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 use a custom xml stream writer. - */ - private String xmlStreamWriterWrapper; - /** - * To define the location of the schema - */ - private String schemaLocation; - /** - * To define the location of the namespaceless schema - */ - private String noNamespaceSchemaLocation; - /** - * Refers to a custom java.util.Map to lookup in the registry containing - * custom JAXB provider properties to be used with the JAXB marshaller. - */ - private String jaxbProviderProperties; - - public String getContextPath() { - return contextPath; - } - - public void setContextPath(String contextPath) { - this.contextPath = contextPath; - } - - public String getSchema() { - return schema; - } - - public void setSchema(String schema) { - this.schema = schema; - } - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } - - public Boolean getObjectFactory() { - return objectFactory; - } - - public void setObjectFactory(Boolean objectFactory) { - this.objectFactory = objectFactory; - } - - public Boolean getIgnoreJAXBElement() { - return ignoreJAXBElement; - } - - public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) { - this.ignoreJAXBElement = ignoreJAXBElement; - } - - public Boolean getMustBeJAXBElement() { - return mustBeJAXBElement; - } - - public void setMustBeJAXBElement(Boolean mustBeJAXBElement) { - this.mustBeJAXBElement = mustBeJAXBElement; - } - - public Boolean getFilterNonXmlChars() { - return filterNonXmlChars; - } - - public void setFilterNonXmlChars(Boolean filterNonXmlChars) { - this.filterNonXmlChars = filterNonXmlChars; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public Boolean getFragment() { - return fragment; - } - - public void setFragment(Boolean fragment) { - this.fragment = fragment; - } - - public String getPartClass() { - return partClass; - } - - public void setPartClass(String partClass) { - this.partClass = partClass; - } - - public String getPartNamespace() { - return partNamespace; - } - - public void setPartNamespace(String partNamespace) { - this.partNamespace = partNamespace; - } - - public String getNamespacePrefixRef() { - return namespacePrefixRef; - } - - public void setNamespacePrefixRef(String namespacePrefixRef) { - this.namespacePrefixRef = namespacePrefixRef; - } - - public String getXmlStreamWriterWrapper() { - return xmlStreamWriterWrapper; - } - - public void setXmlStreamWriterWrapper(String xmlStreamWriterWrapper) { - this.xmlStreamWriterWrapper = xmlStreamWriterWrapper; - } - - public String getSchemaLocation() { - return schemaLocation; - } - - public void setSchemaLocation(String schemaLocation) { - this.schemaLocation = schemaLocation; - } - - public String getNoNamespaceSchemaLocation() { - return noNamespaceSchemaLocation; - } - - public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) { - this.noNamespaceSchemaLocation = noNamespaceSchemaLocation; - } - - public String getJaxbProviderProperties() { - return jaxbProviderProperties; - } - - public void setJaxbProviderProperties(String jaxbProviderProperties) { - this.jaxbProviderProperties = jaxbProviderProperties; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jaxb/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jaxb/src/main/resources/META-INF/spring.factories b/components/camel-jaxb/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4435382..0000000 --- a/components/camel-jaxb/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.converter.jaxb.springboot.JaxbDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentAutoConfiguration.java b/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentAutoConfiguration.java deleted file mode 100644 index 5d184c0..0000000 --- a/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentAutoConfiguration.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.jclouds.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jclouds.JcloudsComponent; -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(JcloudsComponentConfiguration.class) -public class JcloudsComponentAutoConfiguration { - - @Bean(name = "jclouds-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JcloudsComponent.class) - public JcloudsComponent configureJcloudsComponent( - CamelContext camelContext, - JcloudsComponentConfiguration configuration) throws Exception { - JcloudsComponent component = new JcloudsComponent(); - 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-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentConfiguration.java b/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentConfiguration.java deleted file mode 100644 index 34164ec..0000000 --- a/components/camel-jclouds/src/main/java/org/apache/camel/component/jclouds/springboot/JcloudsComponentConfiguration.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.jclouds.springboot; - -import java.util.List; -import org.jclouds.blobstore.BlobStore; -import org.jclouds.compute.ComputeService; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For interacting with cloud compute & blobstore service via jclouds. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jclouds") -public class JcloudsComponentConfiguration { - - /** - * To use the given BlobStore which must be configured when using blobstore. - */ - private List<BlobStore> blobStores; - /** - * To use the given ComputeService which must be configured when use - * compute. - */ - private List<ComputeService> computeServices; - - public List<BlobStore> getBlobStores() { - return blobStores; - } - - public void setBlobStores(List<BlobStore> blobStores) { - this.blobStores = blobStores; - } - - public List<ComputeService> getComputeServices() { - return computeServices; - } - - public void setComputeServices(List<ComputeService> computeServices) { - this.computeServices = computeServices; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jclouds/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jclouds/src/main/resources/META-INF/spring.factories b/components/camel-jclouds/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a73c82d..0000000 --- a/components/camel-jclouds/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.jclouds.springboot.JcloudsComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentAutoConfiguration.java b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentAutoConfiguration.java deleted file mode 100644 index 13ad304..0000000 --- a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentAutoConfiguration.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.jdbc.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jdbc.JdbcComponent; -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(JdbcComponentConfiguration.class) -public class JdbcComponentAutoConfiguration { - - @Bean(name = "jdbc-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JdbcComponent.class) - public JdbcComponent configureJdbcComponent(CamelContext camelContext, - JdbcComponentConfiguration configuration) throws Exception { - JdbcComponent component = new JdbcComponent(); - 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-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentConfiguration.java b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentConfiguration.java deleted file mode 100644 index a4be1f6..0000000 --- a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/springboot/JdbcComponentConfiguration.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.jdbc.springboot; - -import javax.sql.DataSource; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The jdbc component enables you to access databases through JDBC where SQL - * queries are sent in the message body. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jdbc") -public class JdbcComponentConfiguration { - - /** - * To use the DataSource instance instead of looking up the data source by - * name from the registry. - */ - private DataSource dataSource; - - public DataSource getDataSource() { - return dataSource; - } - - public void setDataSource(DataSource dataSource) { - this.dataSource = dataSource; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jdbc/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jdbc/src/main/resources/META-INF/spring.factories b/components/camel-jdbc/src/main/resources/META-INF/spring.factories deleted file mode 100644 index b9900b5..0000000 --- a/components/camel-jdbc/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.jdbc.springboot.JdbcComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java ---------------------------------------------------------------------- diff --git a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.java deleted file mode 100644 index d1f37a8..0000000 --- a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentAutoConfiguration9.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.jetty9.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jetty9.JettyHttpComponent9; -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(JettyHttpComponentConfiguration9.class) -public class JettyHttpComponentAutoConfiguration9 { - - @Bean(name = "jetty-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JettyHttpComponent9.class) - public JettyHttpComponent9 configureJettyHttpComponent9( - CamelContext camelContext, - JettyHttpComponentConfiguration9 configuration) throws Exception { - JettyHttpComponent9 component = new JettyHttpComponent9(); - 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-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java ---------------------------------------------------------------------- diff --git a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java deleted file mode 100644 index 0f23b7b..0000000 --- a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java +++ /dev/null @@ -1,436 +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.jetty9.springboot; - -import java.util.Map; -import org.apache.camel.component.jetty.JettyHttpBinding; -import org.apache.camel.http.common.HttpBinding; -import org.apache.camel.http.common.HttpConfiguration; -import org.apache.camel.spi.HeaderFilterStrategy; -import org.apache.camel.util.jsse.SSLContextParameters; -import org.eclipse.jetty.jmx.MBeanContainer; -import org.eclipse.jetty.server.Connector; -import org.eclipse.jetty.server.handler.ErrorHandler; -import org.eclipse.jetty.util.thread.ThreadPool; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The jetty component provides HTTP-based endpoints for consuming and producing - * HTTP requests. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jetty") -public class JettyHttpComponentConfiguration9 { - - /** - * The key password which is used to access the certificate's key entry in - * the keystore (this is the same password that is supplied to the keystore - * command's -keypass option). - */ - private String sslKeyPassword; - /** - * The ssl password which is required to access the keystore file (this is - * the same password that is supplied to the keystore command's -storepass - * option). - */ - private String sslPassword; - /** - * Specifies the location of the Java keystore file which contains the Jetty - * server's own X.509 certificate in a key entry. - */ - private String keystore; - /** - * This option is used to set the ErrorHandler that Jetty server uses. - */ - private ErrorHandler errorHandler; - /** - * A map which contains per port number specific SSL connectors. - */ - private Map<Integer, Connector> sslSocketConnectors; - /** - * A map which contains per port number specific HTTP connectors. Uses the - * same principle as sslSocketConnectors. - */ - private Map<Integer, Connector> socketConnectors; - /** - * To set a value for minimum number of threads in HttpClient thread pool. - * Notice that both a min and max size must be configured. - */ - private Integer httpClientMinThreads; - /** - * To set a value for maximum number of threads in HttpClient thread pool. - * Notice that both a min and max size must be configured. - */ - private Integer httpClientMaxThreads; - /** - * To set a value for minimum number of threads in server thread pool. - * Notice that both a min and max size must be configured. - */ - private Integer minThreads; - /** - * To set a value for maximum number of threads in server thread pool. - * Notice that both a min and max size must be configured. - */ - private Integer maxThreads; - /** - * To use a custom thread pool for the server. This option should only be - * used in special circumstances. - */ - private ThreadPool threadPool; - /** - * If this option is true Jetty JMX support will be enabled for this - * endpoint. - */ - private Boolean enableJmx; - /** - * To use a custom org.apache.camel.component.jetty.JettyHttpBinding which - * are used to customize how a response should be written for the producer. - */ - private JettyHttpBinding jettyHttpBinding; - /** - * Not to be used - use JettyHttpBinding instead. - */ - private HttpBinding httpBinding; - /** - * Jetty component does not use HttpConfiguration. - */ - private HttpConfiguration httpConfiguration; - /** - * To use a existing configured org.eclipse.jetty.jmx.MBeanContainer if JMX - * is enabled that Jetty uses for registering mbeans. - */ - private MBeanContainer mbContainer; - /** - * A map which contains general SSL connector properties. - */ - private Map<String, Object> sslSocketConnectorProperties; - /** - * A map which contains general HTTP connector properties. Uses the same - * principle as sslSocketConnectorProperties. - */ - private Map<String, Object> socketConnectorProperties; - /** - * Allows to set a timeout in millis when using Jetty as consumer (server). - * By default Jetty uses 30000. You can use a value of = 0 to never expire. - * If a timeout occurs then the request will be expired and Jetty will - * return back a http error 503 to the client. This option is only in use - * when using Jetty with the Asynchronous Routing Engine. - */ - private Long continuationTimeout; - /** - * Whether or not to use Jetty continuations for the Jetty Server. - */ - private Boolean useContinuation; - /** - * To configure security using SSLContextParameters - */ - private SSLContextParameters sslContextParameters; - /** - * Allows to configure a custom value of the response buffer size on the - * Jetty connectors. - */ - private Integer responseBufferSize; - /** - * Allows to configure a custom value of the request buffer size on the - * Jetty connectors. - */ - private Integer requestBufferSize; - /** - * Allows to configure a custom value of the request header size on the - * Jetty connectors. - */ - private Integer requestHeaderSize; - /** - * Allows to configure a custom value of the response header size on the - * Jetty connectors. - */ - private Integer responseHeaderSize; - /** - * To use a http proxy to configure the hostname. - */ - private String proxyHost; - /** - * To use a http proxy to configure the port number. - */ - private Integer proxyPort; - /** - * If the option is true jetty server will send the date header to the - * client which sends the request. NOTE please make sure there is no any - * other camel-jetty endpoint is share the same port otherwise this option - * may not work as expected. - */ - private Boolean sendServerVersion; - /** - * Whether to allow java serialization when a request uses - * context-type=application/x-java-serialized-object This is by default - * turned off. If you enable this then be aware that Java will deserialize - * the incoming data from the request to Java and that can be a potential - * security risk. - */ - private Boolean allowJavaSerializedObject; - /** - * To use a custom HeaderFilterStrategy to filter header to and from Camel - * message. - */ - private HeaderFilterStrategy headerFilterStrategy; - - public String getSslKeyPassword() { - return sslKeyPassword; - } - - public void setSslKeyPassword(String sslKeyPassword) { - this.sslKeyPassword = sslKeyPassword; - } - - public String getSslPassword() { - return sslPassword; - } - - public void setSslPassword(String sslPassword) { - this.sslPassword = sslPassword; - } - - public String getKeystore() { - return keystore; - } - - public void setKeystore(String keystore) { - this.keystore = keystore; - } - - public ErrorHandler getErrorHandler() { - return errorHandler; - } - - public void setErrorHandler(ErrorHandler errorHandler) { - this.errorHandler = errorHandler; - } - - public Map<Integer, Connector> getSslSocketConnectors() { - return sslSocketConnectors; - } - - public void setSslSocketConnectors( - Map<Integer, Connector> sslSocketConnectors) { - this.sslSocketConnectors = sslSocketConnectors; - } - - public Map<Integer, Connector> getSocketConnectors() { - return socketConnectors; - } - - public void setSocketConnectors(Map<Integer, Connector> socketConnectors) { - this.socketConnectors = socketConnectors; - } - - public Integer getHttpClientMinThreads() { - return httpClientMinThreads; - } - - public void setHttpClientMinThreads(Integer httpClientMinThreads) { - this.httpClientMinThreads = httpClientMinThreads; - } - - public Integer getHttpClientMaxThreads() { - return httpClientMaxThreads; - } - - public void setHttpClientMaxThreads(Integer httpClientMaxThreads) { - this.httpClientMaxThreads = httpClientMaxThreads; - } - - 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 ThreadPool getThreadPool() { - return threadPool; - } - - public void setThreadPool(ThreadPool threadPool) { - this.threadPool = threadPool; - } - - public Boolean getEnableJmx() { - return enableJmx; - } - - public void setEnableJmx(Boolean enableJmx) { - this.enableJmx = enableJmx; - } - - public JettyHttpBinding getJettyHttpBinding() { - return jettyHttpBinding; - } - - public void setJettyHttpBinding(JettyHttpBinding jettyHttpBinding) { - this.jettyHttpBinding = jettyHttpBinding; - } - - public HttpBinding getHttpBinding() { - return httpBinding; - } - - public void setHttpBinding(HttpBinding httpBinding) { - this.httpBinding = httpBinding; - } - - public HttpConfiguration getHttpConfiguration() { - return httpConfiguration; - } - - public void setHttpConfiguration(HttpConfiguration httpConfiguration) { - this.httpConfiguration = httpConfiguration; - } - - public MBeanContainer getMbContainer() { - return mbContainer; - } - - public void setMbContainer(MBeanContainer mbContainer) { - this.mbContainer = mbContainer; - } - - public Map<String, Object> getSslSocketConnectorProperties() { - return sslSocketConnectorProperties; - } - - public void setSslSocketConnectorProperties( - Map<String, Object> sslSocketConnectorProperties) { - this.sslSocketConnectorProperties = sslSocketConnectorProperties; - } - - public Map<String, Object> getSocketConnectorProperties() { - return socketConnectorProperties; - } - - public void setSocketConnectorProperties( - Map<String, Object> socketConnectorProperties) { - this.socketConnectorProperties = socketConnectorProperties; - } - - public Long getContinuationTimeout() { - return continuationTimeout; - } - - public void setContinuationTimeout(Long continuationTimeout) { - this.continuationTimeout = continuationTimeout; - } - - public Boolean getUseContinuation() { - return useContinuation; - } - - public void setUseContinuation(Boolean useContinuation) { - this.useContinuation = useContinuation; - } - - public SSLContextParameters getSslContextParameters() { - return sslContextParameters; - } - - public void setSslContextParameters( - SSLContextParameters sslContextParameters) { - this.sslContextParameters = sslContextParameters; - } - - public Integer getResponseBufferSize() { - return responseBufferSize; - } - - public void setResponseBufferSize(Integer responseBufferSize) { - this.responseBufferSize = responseBufferSize; - } - - public Integer getRequestBufferSize() { - return requestBufferSize; - } - - public void setRequestBufferSize(Integer requestBufferSize) { - this.requestBufferSize = requestBufferSize; - } - - public Integer getRequestHeaderSize() { - return requestHeaderSize; - } - - public void setRequestHeaderSize(Integer requestHeaderSize) { - this.requestHeaderSize = requestHeaderSize; - } - - public Integer getResponseHeaderSize() { - return responseHeaderSize; - } - - public void setResponseHeaderSize(Integer responseHeaderSize) { - this.responseHeaderSize = responseHeaderSize; - } - - public String getProxyHost() { - return proxyHost; - } - - public void setProxyHost(String proxyHost) { - this.proxyHost = proxyHost; - } - - public Integer getProxyPort() { - return proxyPort; - } - - public void setProxyPort(Integer proxyPort) { - this.proxyPort = proxyPort; - } - - public Boolean getSendServerVersion() { - return sendServerVersion; - } - - public void setSendServerVersion(Boolean sendServerVersion) { - this.sendServerVersion = sendServerVersion; - } - - public Boolean getAllowJavaSerializedObject() { - return allowJavaSerializedObject; - } - - public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { - this.allowJavaSerializedObject = allowJavaSerializedObject; - } - - public HeaderFilterStrategy getHeaderFilterStrategy() { - return headerFilterStrategy; - } - - public void setHeaderFilterStrategy( - HeaderFilterStrategy headerFilterStrategy) { - this.headerFilterStrategy = headerFilterStrategy; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jetty9/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jetty9/src/main/resources/META-INF/spring.factories b/components/camel-jetty9/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4665848..0000000 --- a/components/camel-jetty9/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.jetty9.springboot.JettyHttpComponentAutoConfiguration9 http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentAutoConfiguration.java b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentAutoConfiguration.java deleted file mode 100644 index d44e3b8..0000000 --- a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentAutoConfiguration.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.jgroups.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jgroups.JGroupsComponent; -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(JGroupsComponentConfiguration.class) -public class JGroupsComponentAutoConfiguration { - - @Bean(name = "jgroups-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JGroupsComponent.class) - public JGroupsComponent configureJGroupsComponent( - CamelContext camelContext, - JGroupsComponentConfiguration configuration) throws Exception { - JGroupsComponent component = new JGroupsComponent(); - 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-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java deleted file mode 100644 index 8d5e024..0000000 --- a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java +++ /dev/null @@ -1,69 +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.jgroups.springboot; - -import org.jgroups.Channel; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The jgroups component provides exchange of messages between Camel and JGroups - * clusters. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.jgroups") -public class JGroupsComponentConfiguration { - - /** - * Channel to use - */ - private Channel channel; - /** - * Specifies configuration properties of the JChannel used by the endpoint. - */ - private String channelProperties; - /** - * If set to true the consumer endpoint will receive org.jgroups.View - * messages as well (not only org.jgroups.Message instances). By default - * only regular messages are consumed by the endpoint. - */ - private Boolean enableViewMessages; - - public Channel getChannel() { - return channel; - } - - public void setChannel(Channel channel) { - this.channel = channel; - } - - public String getChannelProperties() { - return channelProperties; - } - - public void setChannelProperties(String channelProperties) { - this.channelProperties = channelProperties; - } - - public Boolean getEnableViewMessages() { - return enableViewMessages; - } - - public void setEnableViewMessages(Boolean enableViewMessages) { - this.enableViewMessages = enableViewMessages; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jgroups/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jgroups/src/main/resources/META-INF/spring.factories b/components/camel-jgroups/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f0e9df6..0000000 --- a/components/camel-jgroups/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.jgroups.springboot.JGroupsComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java deleted file mode 100644 index 10a3fa5..0000000 --- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.jibx.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.jibx.JibxDataFormat; -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(JibxDataFormatConfiguration.class) -public class JibxDataFormatAutoConfiguration { - - @Bean(name = "jibx-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JibxDataFormat.class) - public JibxDataFormat configureJibxDataFormat(CamelContext camelContext, - JibxDataFormatConfiguration configuration) throws Exception { - JibxDataFormat dataformat = new JibxDataFormat(); - 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-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java deleted file mode 100644 index 3f0742f..0000000 --- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.jibx.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Jibx support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.jibx") -public class JibxDataFormatConfiguration { - - /** - * Class name to use when unmarshalling from XML to Java. - */ - private String unmarshallClass; - /** - * To use a custom binding factory - */ - private String bindingName; - - public String getUnmarshallClass() { - return unmarshallClass; - } - - public void setUnmarshallClass(String unmarshallClass) { - this.unmarshallClass = unmarshallClass; - } - - public String getBindingName() { - return bindingName; - } - - public void setBindingName(String bindingName) { - this.bindingName = bindingName; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jibx/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-jibx/src/main/resources/META-INF/spring.factories b/components/camel-jibx/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 3858c09..0000000 --- a/components/camel-jibx/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.jibx.springboot.JibxDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentAutoConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentAutoConfiguration.java deleted file mode 100644 index 9d689cb..0000000 --- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentAutoConfiguration.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.jms.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.jms.JmsComponent; -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(JmsComponentConfiguration.class) -public class JmsComponentAutoConfiguration { - - @Bean(name = "jms-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JmsComponent.class) - public JmsComponent configureJmsComponent(CamelContext camelContext, - JmsComponentConfiguration configuration) throws Exception { - JmsComponent component = new JmsComponent(); - 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