http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentConfiguration.java b/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentConfiguration.java deleted file mode 100644 index e2dc6ed..0000000 --- a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentConfiguration.java +++ /dev/null @@ -1,79 +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.openshift.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * To manage your Openshift 2.x applications. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.openshift") -public class OpenShiftComponentConfiguration { - - /** - * The username to login to openshift server. - */ - private String username; - /** - * The password for login to openshift server. - */ - private String password; - /** - * Domain name. If not specified then the default domain is used. - */ - private String domain; - /** - * Url to the openshift server. If not specified then the default value from - * the local openshift configuration file /.openshift/express.conf is used. - * And if that fails as well then openshift.redhat.com is used. - */ - private String server; - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public String getServer() { - return server; - } - - public void setServer(String server) { - this.server = server; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-openshift/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-openshift/src/main/resources/META-INF/spring.factories b/components/camel-openshift/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a555e2c..0000000 --- a/components/camel-openshift/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.openshift.springboot.OpenShiftComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentAutoConfiguration.java b/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentAutoConfiguration.java deleted file mode 100644 index eb7b8d4..0000000 --- a/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentAutoConfiguration.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.paho.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.paho.PahoComponent; -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(PahoComponentConfiguration.class) -public class PahoComponentAutoConfiguration { - - @Bean(name = "paho-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PahoComponent.class) - public PahoComponent configurePahoComponent(CamelContext camelContext, - PahoComponentConfiguration configuration) throws Exception { - PahoComponent component = new PahoComponent(); - 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-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentConfiguration.java b/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentConfiguration.java deleted file mode 100644 index 26d2cbb..0000000 --- a/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentConfiguration.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.paho.springboot; - -import org.eclipse.paho.client.mqttv3.MqttConnectOptions; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Component for communicating with MQTT M2M message brokers using Eclipse Paho - * MQTT Client. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.paho") -public class PahoComponentConfiguration { - - /** - * The URL of the MQTT broker. - */ - private String brokerUrl; - /** - * MQTT client identifier. - */ - private String clientId; - /** - * Client connection options - */ - private MqttConnectOptions connectOptions; - - public String getBrokerUrl() { - return brokerUrl; - } - - public void setBrokerUrl(String brokerUrl) { - this.brokerUrl = brokerUrl; - } - - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public MqttConnectOptions getConnectOptions() { - return connectOptions; - } - - public void setConnectOptions(MqttConnectOptions connectOptions) { - this.connectOptions = connectOptions; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-paho/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-paho/src/main/resources/META-INF/spring.factories b/components/camel-paho/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5901896..0000000 --- a/components/camel-paho/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.paho.springboot.PahoComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentAutoConfiguration.java b/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentAutoConfiguration.java deleted file mode 100644 index c741dc6..0000000 --- a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentAutoConfiguration.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.paxlogging.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.paxlogging.PaxLoggingComponent; -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(PaxLoggingComponentConfiguration.class) -public class PaxLoggingComponentAutoConfiguration { - - @Bean(name = "paxlogging-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PaxLoggingComponent.class) - public PaxLoggingComponent configurePaxLoggingComponent( - CamelContext camelContext, - PaxLoggingComponentConfiguration configuration) throws Exception { - PaxLoggingComponent component = new PaxLoggingComponent(); - 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-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentConfiguration.java b/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentConfiguration.java deleted file mode 100644 index d26ef84..0000000 --- a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentConfiguration.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.paxlogging.springboot; - -import org.osgi.framework.BundleContext; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The paxlogging component can be used in an OSGi environment to receive - * PaxLogging events and process them. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.paxlogging") -public class PaxLoggingComponentConfiguration { - - /** - * The OSGi BundleContext is automatic injected by Camel - */ - private BundleContext bundleContext; - - public BundleContext getBundleContext() { - return bundleContext; - } - - public void setBundleContext(BundleContext bundleContext) { - this.bundleContext = bundleContext; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-paxlogging/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-paxlogging/src/main/resources/META-INF/spring.factories b/components/camel-paxlogging/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 68a4e38..0000000 --- a/components/camel-paxlogging/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.paxlogging.springboot.PaxLoggingComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java deleted file mode 100644 index 407e2b8..0000000 --- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.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.protobuf.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.protobuf.ProtobufDataFormat; -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(ProtobufDataFormatConfiguration.class) -public class ProtobufDataFormatAutoConfiguration { - - @Bean(name = "protobuf-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ProtobufDataFormat.class) - public ProtobufDataFormat configureProtobufDataFormat( - CamelContext camelContext, - ProtobufDataFormatConfiguration configuration) throws Exception { - ProtobufDataFormat dataformat = new ProtobufDataFormat(); - 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-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java deleted file mode 100644 index 4d06d4f..0000000 --- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.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.dataformat.protobuf.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Components - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.protobuf") -public class ProtobufDataFormatConfiguration { - - /** - * Name of class to use when unarmshalling - */ - private String instanceClass; - - public String getInstanceClass() { - return instanceClass; - } - - public void setInstanceClass(String instanceClass) { - this.instanceClass = instanceClass; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-protobuf/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-protobuf/src/main/resources/META-INF/spring.factories b/components/camel-protobuf/src/main/resources/META-INF/spring.factories deleted file mode 100644 index cf639dc..0000000 --- a/components/camel-protobuf/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.protobuf.springboot.ProtobufDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentAutoConfiguration.java b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentAutoConfiguration.java deleted file mode 100644 index 6a01589..0000000 --- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentAutoConfiguration.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.quartz.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.quartz.QuartzComponent; -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(QuartzComponentConfiguration.class) -public class QuartzComponentAutoConfiguration { - - @Bean(name = "quartz-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuartzComponent.class) - public QuartzComponent configureQuartzComponent(CamelContext camelContext, - QuartzComponentConfiguration configuration) throws Exception { - QuartzComponent component = new QuartzComponent(); - 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-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java deleted file mode 100644 index 8a200be..0000000 --- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java +++ /dev/null @@ -1,119 +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.quartz.springboot; - -import java.util.Properties; -import org.quartz.Scheduler; -import org.quartz.SchedulerFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Provides a scheduled delivery of messages using the Quartz 1.x scheduler. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.quartz") -public class QuartzComponentConfiguration { - - /** - * To use the custom SchedulerFactory which is used to create the Scheduler. - */ - private SchedulerFactory factory; - /** - * To use the custom configured Quartz scheduler instead of creating a new - * Scheduler. - */ - private Scheduler scheduler; - /** - * Properties to configure the Quartz scheduler. - */ - private Properties properties; - /** - * File name of the properties to load from the classpath - */ - private String propertiesFile; - /** - * Seconds to wait before starting the quartz scheduler. - */ - private Integer startDelayedSeconds; - /** - * Whether or not the scheduler should be auto started. This options is - * default true - */ - private Boolean autoStartScheduler; - /** - * Whether to enable Quartz JMX which allows to manage the Quartz scheduler - * from JMX. This options is default true - */ - private Boolean enableJmx; - - public SchedulerFactory getFactory() { - return factory; - } - - public void setFactory(SchedulerFactory factory) { - this.factory = factory; - } - - public Scheduler getScheduler() { - return scheduler; - } - - public void setScheduler(Scheduler scheduler) { - this.scheduler = scheduler; - } - - public Properties getProperties() { - return properties; - } - - public void setProperties(Properties properties) { - this.properties = properties; - } - - public String getPropertiesFile() { - return propertiesFile; - } - - public void setPropertiesFile(String propertiesFile) { - this.propertiesFile = propertiesFile; - } - - public Integer getStartDelayedSeconds() { - return startDelayedSeconds; - } - - public void setStartDelayedSeconds(Integer startDelayedSeconds) { - this.startDelayedSeconds = startDelayedSeconds; - } - - public Boolean getAutoStartScheduler() { - return autoStartScheduler; - } - - public void setAutoStartScheduler(Boolean autoStartScheduler) { - this.autoStartScheduler = autoStartScheduler; - } - - public Boolean getEnableJmx() { - return enableJmx; - } - - public void setEnableJmx(Boolean enableJmx) { - this.enableJmx = enableJmx; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quartz/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-quartz/src/main/resources/META-INF/spring.factories b/components/camel-quartz/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d33d8b8..0000000 --- a/components/camel-quartz/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.quartz.springboot.QuartzComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentAutoConfiguration.java b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentAutoConfiguration.java deleted file mode 100644 index eb06660..0000000 --- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentAutoConfiguration.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.quartz2.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.quartz2.QuartzComponent; -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(QuartzComponentConfiguration.class) -public class QuartzComponentAutoConfiguration { - - @Bean(name = "quartz2-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuartzComponent.class) - public QuartzComponent configureQuartzComponent(CamelContext camelContext, - QuartzComponentConfiguration configuration) throws Exception { - QuartzComponent component = new QuartzComponent(); - 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-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java deleted file mode 100644 index a3f9824..0000000 --- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java +++ /dev/null @@ -1,149 +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.quartz2.springboot; - -import java.util.Properties; -import org.quartz.Scheduler; -import org.quartz.SchedulerFactory; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Provides a scheduled delivery of messages using the Quartz 2.x scheduler. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.quartz2") -public class QuartzComponentConfiguration { - - /** - * Whether or not the scheduler should be auto started. This options is - * default true - */ - private Boolean autoStartScheduler; - /** - * Seconds to wait before starting the quartz scheduler. - */ - private Integer startDelayedSeconds; - /** - * Whether to prefix the quartz job with the endpoint id. This option is - * default false. - */ - private Boolean prefixJobNameWithEndpointId; - /** - * Whether to enable Quartz JMX which allows to manage the Quartz scheduler - * from JMX. This options is default true - */ - private Boolean enableJmx; - /** - * Properties to configure the Quartz scheduler. - */ - private Properties properties; - /** - * File name of the properties to load from the classpath - */ - private String propertiesFile; - /** - * Whether to prefix the Quartz Scheduler instance name with the - * CamelContext name. This is enabled by default to let each CamelContext - * use its own Quartz scheduler instance by default. You can set this option - * to false to reuse Quartz scheduler instances between multiple - * CamelContext's. - */ - private Boolean prefixInstanceName; - /** - * To use the custom SchedulerFactory which is used to create the Scheduler. - */ - private SchedulerFactory schedulerFactory; - /** - * To use the custom configured Quartz scheduler instead of creating a new - * Scheduler. - */ - private Scheduler scheduler; - - public Boolean getAutoStartScheduler() { - return autoStartScheduler; - } - - public void setAutoStartScheduler(Boolean autoStartScheduler) { - this.autoStartScheduler = autoStartScheduler; - } - - public Integer getStartDelayedSeconds() { - return startDelayedSeconds; - } - - public void setStartDelayedSeconds(Integer startDelayedSeconds) { - this.startDelayedSeconds = startDelayedSeconds; - } - - public Boolean getPrefixJobNameWithEndpointId() { - return prefixJobNameWithEndpointId; - } - - public void setPrefixJobNameWithEndpointId( - Boolean prefixJobNameWithEndpointId) { - this.prefixJobNameWithEndpointId = prefixJobNameWithEndpointId; - } - - public Boolean getEnableJmx() { - return enableJmx; - } - - public void setEnableJmx(Boolean enableJmx) { - this.enableJmx = enableJmx; - } - - public Properties getProperties() { - return properties; - } - - public void setProperties(Properties properties) { - this.properties = properties; - } - - public String getPropertiesFile() { - return propertiesFile; - } - - public void setPropertiesFile(String propertiesFile) { - this.propertiesFile = propertiesFile; - } - - public Boolean getPrefixInstanceName() { - return prefixInstanceName; - } - - public void setPrefixInstanceName(Boolean prefixInstanceName) { - this.prefixInstanceName = prefixInstanceName; - } - - public SchedulerFactory getSchedulerFactory() { - return schedulerFactory; - } - - public void setSchedulerFactory(SchedulerFactory schedulerFactory) { - this.schedulerFactory = schedulerFactory; - } - - public Scheduler getScheduler() { - return scheduler; - } - - public void setScheduler(Scheduler scheduler) { - this.scheduler = scheduler; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quartz2/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-quartz2/src/main/resources/META-INF/spring.factories b/components/camel-quartz2/src/main/resources/META-INF/spring.factories deleted file mode 100644 index c8a464a..0000000 --- a/components/camel-quartz2/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.quartz2.springboot.QuartzComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentAutoConfiguration.java b/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentAutoConfiguration.java deleted file mode 100644 index 149e961..0000000 --- a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentAutoConfiguration.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.quickfixj.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.quickfixj.QuickfixjComponent; -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(QuickfixjComponentConfiguration.class) -public class QuickfixjComponentAutoConfiguration { - - @Bean(name = "quickfix-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuickfixjComponent.class) - public QuickfixjComponent configureQuickfixjComponent( - CamelContext camelContext, - QuickfixjComponentConfiguration configuration) throws Exception { - QuickfixjComponent component = new QuickfixjComponent(); - 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-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java b/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java deleted file mode 100644 index c4b186d..0000000 --- a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java +++ /dev/null @@ -1,98 +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.quickfixj.springboot; - -import java.util.Map; -import org.apache.camel.component.quickfixj.QuickfixjConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; -import quickfix.LogFactory; -import quickfix.MessageFactory; -import quickfix.MessageStoreFactory; - -/** - * The quickfix component allows to send Financial Interchange (FIX) messages to - * the QuickFix engine. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.quickfix") -public class QuickfixjComponentConfiguration { - - /** - * To use the given MessageFactory - */ - private MessageFactory messageFactory; - /** - * To use the given LogFactory - */ - private LogFactory logFactory; - /** - * To use the given MessageStoreFactory - */ - private MessageStoreFactory messageStoreFactory; - /** - * To use the given map of pre configured QuickFix configurations mapped to - * the key - */ - private Map<String, QuickfixjConfiguration> configurations; - /** - * If set to true the engines will be created and started when needed (when - * first message is send) - */ - private Boolean lazyCreateEngines; - - public MessageFactory getMessageFactory() { - return messageFactory; - } - - public void setMessageFactory(MessageFactory messageFactory) { - this.messageFactory = messageFactory; - } - - public LogFactory getLogFactory() { - return logFactory; - } - - public void setLogFactory(LogFactory logFactory) { - this.logFactory = logFactory; - } - - public MessageStoreFactory getMessageStoreFactory() { - return messageStoreFactory; - } - - public void setMessageStoreFactory(MessageStoreFactory messageStoreFactory) { - this.messageStoreFactory = messageStoreFactory; - } - - public Map<String, QuickfixjConfiguration> getConfigurations() { - return configurations; - } - - public void setConfigurations( - Map<String, QuickfixjConfiguration> configurations) { - this.configurations = configurations; - } - - public Boolean getLazyCreateEngines() { - return lazyCreateEngines; - } - - public void setLazyCreateEngines(Boolean lazyCreateEngines) { - this.lazyCreateEngines = lazyCreateEngines; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-quickfix/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-quickfix/src/main/resources/META-INF/spring.factories b/components/camel-quickfix/src/main/resources/META-INF/spring.factories deleted file mode 100644 index c3f0a79..0000000 --- a/components/camel-quickfix/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.quickfixj.springboot.QuickfixjComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentAutoConfiguration.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentAutoConfiguration.java deleted file mode 100644 index ca57cd3..0000000 --- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentAutoConfiguration.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.restlet.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.restlet.RestletComponent; -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(RestletComponentConfiguration.class) -public class RestletComponentAutoConfiguration { - - @Bean(name = "restlet-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(RestletComponent.class) - public RestletComponent configureRestletComponent( - CamelContext camelContext, - RestletComponentConfiguration configuration) throws Exception { - RestletComponent component = new RestletComponent(); - 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-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java deleted file mode 100644 index 612d6af..0000000 --- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java +++ /dev/null @@ -1,296 +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.restlet.springboot; - -import java.util.List; -import org.apache.camel.spi.HeaderFilterStrategy; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Component for consuming and producing Restful resources using Restlet. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.restlet") -public class RestletComponentConfiguration { - - /** - * Indicates if the controller thread should be a daemon (not blocking JVM - * exit). - */ - private Boolean controllerDaemon; - /** - * Time for the controller thread to sleep between each control. - */ - private Integer controllerSleepTimeMs; - /** - * The size of the buffer when reading messages. - */ - private Integer inboundBufferSize; - /** - * Maximum number of concurrent connections per host (IP address). - */ - private Integer maxConnectionsPerHost; - /** - * Maximum threads that will service requests. - */ - private Integer maxThreads; - /** - * Number of worker threads determining when the connector is considered - * overloaded. - */ - private Integer lowThreads; - /** - * Maximum number of concurrent connections in total. - */ - private Integer maxTotalConnections; - /** - * Minimum threads waiting to service requests. - */ - private Integer minThreads; - /** - * The size of the buffer when writing messages. - */ - private Integer outboundBufferSize; - /** - * Indicates if connections should be kept alive after a call. - */ - private Boolean persistingConnections; - /** - * Indicates if pipelining connections are supported. - */ - private Boolean pipeliningConnections; - /** - * Time for an idle thread to wait for an operation before being collected. - */ - private Integer threadMaxIdleTimeMs; - /** - * Lookup the X-Forwarded-For header supported by popular proxies and caches - * and uses it to populate the Request.getClientAddresses() method result. - * This information is only safe for intermediary components within your - * local network. Other addresses could easily be changed by setting a fake - * header and should not be trusted for serious security checks. - */ - private Boolean useForwardedForHeader; - /** - * Enable/disable the SO_REUSEADDR socket option. See - * java.io.ServerSocketreuseAddress property for additional details. - */ - private Boolean reuseAddress; - /** - * Maximum number of calls that can be queued if there aren't any worker - * thread available to service them. If the value is '0' then no queue is - * used and calls are rejected if no worker thread is immediately available. - * If the value is '-1' then an unbounded queue is used and calls are never - * rejected. - */ - private Integer maxQueued; - /** - * Determines whether or not the raw input stream from Restlet is cached or - * not (Camel will read the stream into a in memory/overflow to file Stream - * caching) cache. By default Camel will cache the Restlet input stream to - * support reading it multiple times to ensure Camel can retrieve all data - * from the stream. However you can set this option to true when you for - * example need to access the raw stream such as streaming it directly to a - * file or other persistent store. DefaultRestletBinding will copy the - * request input stream into a stream cache and put it into message body if - * this option is false to support reading the stream multiple times. - */ - private Boolean disableStreamCache; - /** - * To configure the port number for the restlet consumer routes. This allows - * to configure this once to reuse the same port for these consumers. - */ - private Integer port; - /** - * Whether to use synchronous Restlet Client for the producer. Setting this - * option to true can yield faster performance as it seems the Restlet - * synchronous Client works better. - */ - private Boolean synchronous; - /** - * A list of converters to enable as full class name or simple class name. - * All the converters automatically registered are enabled if empty or null - */ - private List<String> enabledConverters; - /** - * To use a custom HeaderFilterStrategy to filter header to and from Camel - * message. - */ - private HeaderFilterStrategy headerFilterStrategy; - - public Boolean getControllerDaemon() { - return controllerDaemon; - } - - public void setControllerDaemon(Boolean controllerDaemon) { - this.controllerDaemon = controllerDaemon; - } - - public Integer getControllerSleepTimeMs() { - return controllerSleepTimeMs; - } - - public void setControllerSleepTimeMs(Integer controllerSleepTimeMs) { - this.controllerSleepTimeMs = controllerSleepTimeMs; - } - - public Integer getInboundBufferSize() { - return inboundBufferSize; - } - - public void setInboundBufferSize(Integer inboundBufferSize) { - this.inboundBufferSize = inboundBufferSize; - } - - public Integer getMaxConnectionsPerHost() { - return maxConnectionsPerHost; - } - - public void setMaxConnectionsPerHost(Integer maxConnectionsPerHost) { - this.maxConnectionsPerHost = maxConnectionsPerHost; - } - - public Integer getMaxThreads() { - return maxThreads; - } - - public void setMaxThreads(Integer maxThreads) { - this.maxThreads = maxThreads; - } - - public Integer getLowThreads() { - return lowThreads; - } - - public void setLowThreads(Integer lowThreads) { - this.lowThreads = lowThreads; - } - - public Integer getMaxTotalConnections() { - return maxTotalConnections; - } - - public void setMaxTotalConnections(Integer maxTotalConnections) { - this.maxTotalConnections = maxTotalConnections; - } - - public Integer getMinThreads() { - return minThreads; - } - - public void setMinThreads(Integer minThreads) { - this.minThreads = minThreads; - } - - public Integer getOutboundBufferSize() { - return outboundBufferSize; - } - - public void setOutboundBufferSize(Integer outboundBufferSize) { - this.outboundBufferSize = outboundBufferSize; - } - - public Boolean getPersistingConnections() { - return persistingConnections; - } - - public void setPersistingConnections(Boolean persistingConnections) { - this.persistingConnections = persistingConnections; - } - - public Boolean getPipeliningConnections() { - return pipeliningConnections; - } - - public void setPipeliningConnections(Boolean pipeliningConnections) { - this.pipeliningConnections = pipeliningConnections; - } - - public Integer getThreadMaxIdleTimeMs() { - return threadMaxIdleTimeMs; - } - - public void setThreadMaxIdleTimeMs(Integer threadMaxIdleTimeMs) { - this.threadMaxIdleTimeMs = threadMaxIdleTimeMs; - } - - public Boolean getUseForwardedForHeader() { - return useForwardedForHeader; - } - - public void setUseForwardedForHeader(Boolean useForwardedForHeader) { - this.useForwardedForHeader = useForwardedForHeader; - } - - public Boolean getReuseAddress() { - return reuseAddress; - } - - public void setReuseAddress(Boolean reuseAddress) { - this.reuseAddress = reuseAddress; - } - - public Integer getMaxQueued() { - return maxQueued; - } - - public void setMaxQueued(Integer maxQueued) { - this.maxQueued = maxQueued; - } - - public Boolean getDisableStreamCache() { - return disableStreamCache; - } - - public void setDisableStreamCache(Boolean disableStreamCache) { - this.disableStreamCache = disableStreamCache; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public Boolean getSynchronous() { - return synchronous; - } - - public void setSynchronous(Boolean synchronous) { - this.synchronous = synchronous; - } - - public List<String> getEnabledConverters() { - return enabledConverters; - } - - public void setEnabledConverters(List<String> enabledConverters) { - this.enabledConverters = enabledConverters; - } - - 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-restlet/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/resources/META-INF/spring.factories b/components/camel-restlet/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5ff7b3e..0000000 --- a/components/camel-restlet/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.restlet.springboot.RestletComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java deleted file mode 100644 index 189248a..0000000 --- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.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.rss.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.rss.RssDataFormat; -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(RssDataFormatConfiguration.class) -public class RssDataFormatAutoConfiguration { - - @Bean(name = "rss-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(RssDataFormat.class) - public RssDataFormat configureRssDataFormat(CamelContext camelContext, - RssDataFormatConfiguration configuration) throws Exception { - RssDataFormat dataformat = new RssDataFormat(); - 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-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java deleted file mode 100644 index 2616eba..0000000 --- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.rss.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel RSS support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.rss") -public class RssDataFormatConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-rss/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/resources/META-INF/spring.factories b/components/camel-rss/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5c2d5c4..0000000 --- a/components/camel-rss/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.rss.springboot.RssDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentAutoConfiguration.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentAutoConfiguration.java deleted file mode 100644 index e73550c..0000000 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentAutoConfiguration.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.salesforce.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.salesforce.SalesforceComponent; -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(SalesforceComponentConfiguration.class) -public class SalesforceComponentAutoConfiguration { - - @Bean(name = "salesforce-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SalesforceComponent.class) - public SalesforceComponent configureSalesforceComponent( - CamelContext camelContext, - SalesforceComponentConfiguration configuration) throws Exception { - SalesforceComponent component = new SalesforceComponent(); - 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