http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java deleted file mode 100644 index bed39e9..0000000 --- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java +++ /dev/null @@ -1,68 +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.netty4.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.netty4.NettyConfiguration; -import io.netty.util.concurrent.EventExecutorGroup; - -/** - * Socket level networking using TCP or UDP with the Netty 4.x library. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.netty4") -public class NettyComponentConfiguration { - - /** - * The thread pool size for the EventExecutorGroup if its in use. The - * default value is 16. - */ - private int maximumPoolSize; - /** - * To use the NettyConfiguration as configuration when creating endpoints. - */ - private NettyConfiguration configuration; - /** - * To use the given EventExecutorGroup - */ - private EventExecutorGroup executorService; - - public int getMaximumPoolSize() { - return maximumPoolSize; - } - - public void setMaximumPoolSize(int maximumPoolSize) { - this.maximumPoolSize = maximumPoolSize; - } - - public NettyConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(NettyConfiguration configuration) { - this.configuration = configuration; - } - - public EventExecutorGroup getExecutorService() { - return executorService; - } - - public void setExecutorService(EventExecutorGroup executorService) { - this.executorService = executorService; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-netty4/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-netty4/src/main/resources/META-INF/spring.factories b/components/camel-netty4/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 25df3f1..0000000 --- a/components/camel-netty4/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.netty4.springboot.NettyComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentAutoConfiguration.java b/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentAutoConfiguration.java deleted file mode 100644 index f889140..0000000 --- a/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.olingo2.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.olingo2.Olingo2Component; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(Olingo2ComponentConfiguration.class) -public class Olingo2ComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(Olingo2Component.class) - public Olingo2Component configureComponent(CamelContext camelContext, - Olingo2ComponentConfiguration configuration) throws Exception { - Olingo2Component component = new Olingo2Component(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentConfiguration.java b/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentConfiguration.java deleted file mode 100644 index f28b1f6..0000000 --- a/components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/springboot/Olingo2ComponentConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.olingo2.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.apache.camel.component.olingo2.Olingo2Configuration; - -/** - * Communicates with OData 2.0 and 3.0 services using Apache Olingo. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.olingo2") -public class Olingo2ComponentConfiguration { - - /** - * To use the shared configuration - */ - private Olingo2Configuration configuration; - - public Olingo2Configuration getConfiguration() { - return configuration; - } - - public void setConfiguration(Olingo2Configuration configuration) { - this.configuration = configuration; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-olingo2/camel-olingo2-component/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-olingo2/camel-olingo2-component/src/main/resources/META-INF/spring.factories b/components/camel-olingo2/camel-olingo2-component/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 9a1c863..0000000 --- a/components/camel-olingo2/camel-olingo2-component/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.olingo2.springboot.Olingo2ComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentAutoConfiguration.java b/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentAutoConfiguration.java deleted file mode 100644 index 10a56cf..0000000 --- a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/springboot/OpenShiftComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.openshift.OpenShiftComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(OpenShiftComponentConfiguration.class) -public class OpenShiftComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(OpenShiftComponent.class) - public OpenShiftComponent configureComponent(CamelContext camelContext, - OpenShiftComponentConfiguration configuration) throws Exception { - OpenShiftComponent component = new OpenShiftComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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/4f1d8a86/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/4f1d8a86/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentAutoConfiguration.java b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentAutoConfiguration.java deleted file mode 100644 index 6127dee..0000000 --- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.optaplanner.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.optaplanner.OptaPlannerComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(OptaPlannerComponentConfiguration.class) -public class OptaPlannerComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(OptaPlannerComponent.class) - public OptaPlannerComponent configureComponent(CamelContext camelContext, - OptaPlannerComponentConfiguration configuration) throws Exception { - OptaPlannerComponent component = new OptaPlannerComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentConfiguration.java b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentConfiguration.java deleted file mode 100644 index a13513e..0000000 --- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/springboot/OptaPlannerComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.optaplanner.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Solves the planning problem contained in a message with OptaPlanner. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.optaplanner") -public class OptaPlannerComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-optaplanner/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-optaplanner/src/main/resources/META-INF/spring.factories b/components/camel-optaplanner/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 7ecf38b..0000000 --- a/components/camel-optaplanner/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.optaplanner.springboot.OptaPlannerComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/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 4385917..0000000 --- a/components/camel-paho/src/main/java/org/apache/camel/component/paho/springboot/PahoComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.paho.PahoComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(PahoComponentConfiguration.class) -public class PahoComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PahoComponent.class) - public PahoComponent configureComponent(CamelContext camelContext, - PahoComponentConfiguration configuration) throws Exception { - PahoComponent component = new PahoComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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 6a44d99..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.springframework.boot.context.properties.ConfigurationProperties; -import org.eclipse.paho.client.mqttv3.MqttConnectOptions; - -/** - * 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/4f1d8a86/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/4f1d8a86/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 95a0463..0000000 --- a/components/camel-paxlogging/src/main/java/org/apache/camel/component/paxlogging/springboot/PaxLoggingComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.paxlogging.PaxLoggingComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(PaxLoggingComponentConfiguration.class) -public class PaxLoggingComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PaxLoggingComponent.class) - public PaxLoggingComponent configureComponent(CamelContext camelContext, - PaxLoggingComponentConfiguration configuration) throws Exception { - PaxLoggingComponent component = new PaxLoggingComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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 a614b0c..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.springframework.boot.context.properties.ConfigurationProperties; -import org.osgi.framework.BundleContext; - -/** - * 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/4f1d8a86/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/4f1d8a86/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentAutoConfiguration.java b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentAutoConfiguration.java deleted file mode 100644 index bee67e0..0000000 --- a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.pdf.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.pdf.PdfComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(PdfComponentConfiguration.class) -public class PdfComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PdfComponent.class) - public PdfComponent configureComponent(CamelContext camelContext, - PdfComponentConfiguration configuration) throws Exception { - PdfComponent component = new PdfComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentConfiguration.java b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentConfiguration.java deleted file mode 100644 index 451d44f..0000000 --- a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/springboot/PdfComponentConfiguration.java +++ /dev/null @@ -1,29 +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.pdf.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The pdf components provides the ability to create modify or extract content - * from PDF documents. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.pdf") -public class PdfComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-pdf/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-pdf/src/main/resources/META-INF/spring.factories b/components/camel-pdf/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d58b992..0000000 --- a/components/camel-pdf/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.pdf.springboot.PdfComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentAutoConfiguration.java b/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentAutoConfiguration.java deleted file mode 100644 index 126b0c0..0000000 --- a/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.pgevent.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.pgevent.PgEventComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(PgEventComponentConfiguration.class) -public class PgEventComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PgEventComponent.class) - public PgEventComponent configureComponent(CamelContext camelContext, - PgEventComponentConfiguration configuration) throws Exception { - PgEventComponent component = new PgEventComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentConfiguration.java b/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentConfiguration.java deleted file mode 100644 index df13c61..0000000 --- a/components/camel-pgevent/src/main/java/org/apache/camel/component/pgevent/springboot/PgEventComponentConfiguration.java +++ /dev/null @@ -1,29 +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.pgevent.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The pgevent component allows for producing/consuming PostgreSQL events - * related to the LISTEN/NOTIFY commands. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.pgevent") -public class PgEventComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-pgevent/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-pgevent/src/main/resources/META-INF/spring.factories b/components/camel-pgevent/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 4d487d1..0000000 --- a/components/camel-pgevent/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.pgevent.springboot.PgEventComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentAutoConfiguration.java b/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentAutoConfiguration.java deleted file mode 100644 index 6306ea1..0000000 --- a/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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.printer.springboot; - -import org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.printer.PrinterComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(PrinterComponentConfiguration.class) -public class PrinterComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(PrinterComponent.class) - public PrinterComponent configureComponent(CamelContext camelContext, - PrinterComponentConfiguration configuration) throws Exception { - PrinterComponent component = new PrinterComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentConfiguration.java b/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentConfiguration.java deleted file mode 100644 index 6ff918f..0000000 --- a/components/camel-printer/src/main/java/org/apache/camel/component/printer/springboot/PrinterComponentConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.printer.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The printer component is used for sending messages to printers as print jobs. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.lpr") -public class PrinterComponentConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/components/camel-printer/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-printer/src/main/resources/META-INF/spring.factories b/components/camel-printer/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5cbf24a..0000000 --- a/components/camel-printer/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.printer.springboot.PrinterComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/4f1d8a86/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 848e27f..0000000 --- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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 org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.quartz.QuartzComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(QuartzComponentConfiguration.class) -public class QuartzComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuartzComponent.class) - public QuartzComponent configureComponent(CamelContext camelContext, - QuartzComponentConfiguration configuration) throws Exception { - QuartzComponent component = new QuartzComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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 fdc8694..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 org.springframework.boot.context.properties.ConfigurationProperties; -import org.quartz.SchedulerFactory; -import org.quartz.Scheduler; -import java.util.Properties; - -/** - * 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 int 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 int getStartDelayedSeconds() { - return startDelayedSeconds; - } - - public void setStartDelayedSeconds(int startDelayedSeconds) { - this.startDelayedSeconds = startDelayedSeconds; - } - - public boolean isAutoStartScheduler() { - return autoStartScheduler; - } - - public void setAutoStartScheduler(boolean autoStartScheduler) { - this.autoStartScheduler = autoStartScheduler; - } - - public boolean isEnableJmx() { - 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/4f1d8a86/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/4f1d8a86/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 6b8d9be..0000000 --- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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 org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.quartz2.QuartzComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(QuartzComponentConfiguration.class) -public class QuartzComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuartzComponent.class) - public QuartzComponent configureComponent(CamelContext camelContext, - QuartzComponentConfiguration configuration) throws Exception { - QuartzComponent component = new QuartzComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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 1a10e7d..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 org.springframework.boot.context.properties.ConfigurationProperties; -import java.util.Properties; -import org.quartz.SchedulerFactory; -import org.quartz.Scheduler; - -/** - * 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 int 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 isAutoStartScheduler() { - return autoStartScheduler; - } - - public void setAutoStartScheduler(boolean autoStartScheduler) { - this.autoStartScheduler = autoStartScheduler; - } - - public int getStartDelayedSeconds() { - return startDelayedSeconds; - } - - public void setStartDelayedSeconds(int startDelayedSeconds) { - this.startDelayedSeconds = startDelayedSeconds; - } - - public boolean isPrefixJobNameWithEndpointId() { - return prefixJobNameWithEndpointId; - } - - public void setPrefixJobNameWithEndpointId( - boolean prefixJobNameWithEndpointId) { - this.prefixJobNameWithEndpointId = prefixJobNameWithEndpointId; - } - - public boolean isEnableJmx() { - 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 isPrefixInstanceName() { - 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/4f1d8a86/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/4f1d8a86/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 f6db84e..0000000 --- a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentAutoConfiguration.java +++ /dev/null @@ -1,50 +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 org.springframework.context.annotation.Configuration; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.component.quickfixj.QuickfixjComponent; -import org.apache.camel.CamelContext; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.context.annotation.Bean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(QuickfixjComponentConfiguration.class) -public class QuickfixjComponentAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(QuickfixjComponent.class) - public QuickfixjComponent configureComponent(CamelContext camelContext, - QuickfixjComponentConfiguration configuration) throws Exception { - QuickfixjComponent component = new QuickfixjComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null); - 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/4f1d8a86/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 b5c7ac6..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 org.springframework.boot.context.properties.ConfigurationProperties; -import quickfix.MessageFactory; -import quickfix.LogFactory; -import quickfix.MessageStoreFactory; -import java.util.Map; -import org.apache.camel.component.quickfixj.QuickfixjConfiguration; - -/** - * 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<java.lang.String, org.apache.camel.component.quickfixj.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 isLazyCreateEngines() { - 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/4f1d8a86/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