http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java b/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.java deleted file mode 100644 index 0bf0507..0000000 --- a/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentAutoConfiguration.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.ganglia.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.ganglia.GangliaComponent; -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(GangliaComponentConfiguration.class) -public class GangliaComponentAutoConfiguration { - - @Bean(name = "ganglia-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GangliaComponent.class) - public GangliaComponent configureGangliaComponent( - CamelContext camelContext, - GangliaComponentConfiguration configuration) throws Exception { - GangliaComponent component = new GangliaComponent(); - 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-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentConfiguration.java b/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentConfiguration.java deleted file mode 100644 index 91442e5..0000000 --- a/components/camel-ganglia/src/main/java/org/apache/camel/component/ganglia/springboot/GangliaComponentConfiguration.java +++ /dev/null @@ -1,221 +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.ganglia.springboot; - -import info.ganglia.gmetric4j.gmetric.GMetric.UDPAddressingMode; -import info.ganglia.gmetric4j.gmetric.GMetricSlope; -import info.ganglia.gmetric4j.gmetric.GMetricType; -import org.apache.camel.component.ganglia.GangliaConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The ganglia component is used for sending metrics to the Ganglia monitoring - * system. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.ganglia") -public class GangliaComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private GangliaConfiguration configuration; - /** - * Host name for Ganglia server - */ - private String host; - /** - * Port for Ganglia server - */ - private Integer port; - /** - * Send the UDP metric packets using MULTICAST or UNICAST - */ - private UDPAddressingMode mode; - /** - * If using multicast set the TTL of the packets - */ - private Integer ttl; - /** - * Use the wire format of Ganglia 3.1.0 and later versions. Set this to - * false to use Ganglia 3.0.x or earlier. - */ - private Boolean wireFormat31x; - /** - * Spoofing information IP:hostname - */ - private String spoofHostname; - /** - * The group that the metric belongs to. - */ - private String groupName; - /** - * Prefix the metric name with this string and an underscore. - */ - private String prefix; - /** - * The name to use for the metric. - */ - private String metricName; - /** - * The type of value - */ - private GMetricType type; - /** - * The slope - */ - private GMetricSlope slope; - /** - * Any unit of measurement that qualifies the metric e.g. widgets litres - * bytes. Do not include a prefix such as k (kilo) or m (milli) other tools - * may scale the units later. The value should be unscaled. - */ - private String units; - /** - * Maximum time in seconds that the value can be considered current. After - * this Ganglia considers the value to have expired. - */ - private Integer tmax; - /** - * Minumum time in seconds before Ganglia will purge the metric value if it - * expires. Set to 0 and the value will remain in Ganglia indefinitely until - * a gmond agent restart. - */ - private Integer dmax; - - public GangliaConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(GangliaConfiguration configuration) { - this.configuration = configuration; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public UDPAddressingMode getMode() { - return mode; - } - - public void setMode(UDPAddressingMode mode) { - this.mode = mode; - } - - public Integer getTtl() { - return ttl; - } - - public void setTtl(Integer ttl) { - this.ttl = ttl; - } - - public Boolean getWireFormat31x() { - return wireFormat31x; - } - - public void setWireFormat31x(Boolean wireFormat31x) { - this.wireFormat31x = wireFormat31x; - } - - public String getSpoofHostname() { - return spoofHostname; - } - - public void setSpoofHostname(String spoofHostname) { - this.spoofHostname = spoofHostname; - } - - public String getGroupName() { - return groupName; - } - - public void setGroupName(String groupName) { - this.groupName = groupName; - } - - public String getPrefix() { - return prefix; - } - - public void setPrefix(String prefix) { - this.prefix = prefix; - } - - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public GMetricType getType() { - return type; - } - - public void setType(GMetricType type) { - this.type = type; - } - - public GMetricSlope getSlope() { - return slope; - } - - public void setSlope(GMetricSlope slope) { - this.slope = slope; - } - - public String getUnits() { - return units; - } - - public void setUnits(String units) { - this.units = units; - } - - public Integer getTmax() { - return tmax; - } - - public void setTmax(Integer tmax) { - this.tmax = tmax; - } - - public Integer getDmax() { - return dmax; - } - - public void setDmax(Integer dmax) { - this.dmax = dmax; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-ganglia/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-ganglia/src/main/resources/META-INF/spring.factories b/components/camel-ganglia/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 330482a..0000000 --- a/components/camel-ganglia/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.ganglia.springboot.GangliaComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentAutoConfiguration.java b/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentAutoConfiguration.java deleted file mode 100644 index 093c87f..0000000 --- a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentAutoConfiguration.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.google.calendar.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.google.calendar.GoogleCalendarComponent; -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(GoogleCalendarComponentConfiguration.class) -public class GoogleCalendarComponentAutoConfiguration { - - @Bean(name = "google-calendar-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GoogleCalendarComponent.class) - public GoogleCalendarComponent configureGoogleCalendarComponent( - CamelContext camelContext, - GoogleCalendarComponentConfiguration configuration) - throws Exception { - GoogleCalendarComponent component = new GoogleCalendarComponent(); - 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-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentConfiguration.java b/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentConfiguration.java deleted file mode 100644 index e62f9ec..0000000 --- a/components/camel-google-calendar/src/main/java/org/apache/camel/component/google/calendar/springboot/GoogleCalendarComponentConfiguration.java +++ /dev/null @@ -1,199 +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.google.calendar.springboot; - -import java.util.List; -import org.apache.camel.component.google.calendar.GoogleCalendarClientFactory; -import org.apache.camel.component.google.calendar.GoogleCalendarConfiguration; -import org.apache.camel.component.google.calendar.internal.GoogleCalendarApiName; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The google-calendar component provides access to Google Calendar. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.google-calendar") -public class GoogleCalendarComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private GoogleCalendarConfiguration configuration; - /** - * To use the GoogleCalendarClientFactory as factory for creating the - * client. Will by default use BatchGoogleCalendarClientFactory - */ - private GoogleCalendarClientFactory clientFactory; - /** - * What kind of operation to perform - */ - private GoogleCalendarApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * Client ID of the calendar application - */ - private String clientId; - /** - * The emailAddress of the Google Service Account. - */ - private String emailAddress; - /** - * Client secret of the calendar application - */ - private String clientSecret; - /** - * OAuth 2 access token. This typically expires after an hour so - * refreshToken is recommended for long term usage. - */ - private String accessToken; - /** - * OAuth 2 refresh token. Using this the Google Calendar component can - * obtain a new accessToken whenever the current one expires - a necessity - * if the application is long-lived. - */ - private String refreshToken; - /** - * Google calendar application name. Example would be - * camel-google-calendar/1.0 - */ - private String applicationName; - /** - * Specifies the level of permissions you want a calendar application to - * have to a user account. See - * https://developers.google.com/google-apps/calendar/auth for more info. - */ - private List<String> scopes; - /** - * The name of the p12 file which has the private key to use with the Google - * Service Account. - */ - private String p12FileName; - /** - * The email address of the user the application is trying to impersonate in - * the service account flow - */ - private String user; - - public GoogleCalendarConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(GoogleCalendarConfiguration configuration) { - this.configuration = configuration; - } - - public GoogleCalendarClientFactory getClientFactory() { - return clientFactory; - } - - public void setClientFactory(GoogleCalendarClientFactory clientFactory) { - this.clientFactory = clientFactory; - } - - public GoogleCalendarApiName getApiName() { - return apiName; - } - - public void setApiName(GoogleCalendarApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public String getEmailAddress() { - return emailAddress; - } - - public void setEmailAddress(String emailAddress) { - this.emailAddress = emailAddress; - } - - public String getClientSecret() { - return clientSecret; - } - - public void setClientSecret(String clientSecret) { - this.clientSecret = clientSecret; - } - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public String getRefreshToken() { - return refreshToken; - } - - public void setRefreshToken(String refreshToken) { - this.refreshToken = refreshToken; - } - - public String getApplicationName() { - return applicationName; - } - - public void setApplicationName(String applicationName) { - this.applicationName = applicationName; - } - - public List<String> getScopes() { - return scopes; - } - - public void setScopes(List<String> scopes) { - this.scopes = scopes; - } - - public String getP12FileName() { - return p12FileName; - } - - public void setP12FileName(String p12FileName) { - this.p12FileName = p12FileName; - } - - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-calendar/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-google-calendar/src/main/resources/META-INF/spring.factories b/components/camel-google-calendar/src/main/resources/META-INF/spring.factories deleted file mode 100644 index dc04bbf..0000000 --- a/components/camel-google-calendar/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.google.calendar.springboot.GoogleCalendarComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentAutoConfiguration.java b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentAutoConfiguration.java deleted file mode 100644 index d42c3c4..0000000 --- a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentAutoConfiguration.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.google.drive.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.google.drive.GoogleDriveComponent; -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(GoogleDriveComponentConfiguration.class) -public class GoogleDriveComponentAutoConfiguration { - - @Bean(name = "google-drive-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GoogleDriveComponent.class) - public GoogleDriveComponent configureGoogleDriveComponent( - CamelContext camelContext, - GoogleDriveComponentConfiguration configuration) throws Exception { - GoogleDriveComponent component = new GoogleDriveComponent(); - 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-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentConfiguration.java b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentConfiguration.java deleted file mode 100644 index 0db879a..0000000 --- a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/springboot/GoogleDriveComponentConfiguration.java +++ /dev/null @@ -1,161 +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.google.drive.springboot; - -import java.util.List; -import org.apache.camel.component.google.drive.GoogleDriveClientFactory; -import org.apache.camel.component.google.drive.GoogleDriveConfiguration; -import org.apache.camel.component.google.drive.internal.GoogleDriveApiName; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The google-drive component provides access to Google Drive file storage - * service. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.google-drive") -public class GoogleDriveComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private GoogleDriveConfiguration configuration; - /** - * To use the GoogleCalendarClientFactory as factory for creating the - * client. Will by default use BatchGoogleDriveClientFactory - */ - private GoogleDriveClientFactory clientFactory; - /** - * What kind of operation to perform - */ - private GoogleDriveApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * Client ID of the drive application - */ - private String clientId; - /** - * Client secret of the drive application - */ - private String clientSecret; - /** - * OAuth 2 access token. This typically expires after an hour so - * refreshToken is recommended for long term usage. - */ - private String accessToken; - /** - * OAuth 2 refresh token. Using this the Google Calendar component can - * obtain a new accessToken whenever the current one expires - a necessity - * if the application is long-lived. - */ - private String refreshToken; - /** - * Google drive application name. Example would be camel-google-drive/1.0 - */ - private String applicationName; - /** - * Specifies the level of permissions you want a drive application to have - * to a user account. See https://developers.google.com/drive/web/scopes for - * more info. - */ - private List<String> scopes; - - public GoogleDriveConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(GoogleDriveConfiguration configuration) { - this.configuration = configuration; - } - - public GoogleDriveClientFactory getClientFactory() { - return clientFactory; - } - - public void setClientFactory(GoogleDriveClientFactory clientFactory) { - this.clientFactory = clientFactory; - } - - public GoogleDriveApiName getApiName() { - return apiName; - } - - public void setApiName(GoogleDriveApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public String getClientSecret() { - return clientSecret; - } - - public void setClientSecret(String clientSecret) { - this.clientSecret = clientSecret; - } - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public String getRefreshToken() { - return refreshToken; - } - - public void setRefreshToken(String refreshToken) { - this.refreshToken = refreshToken; - } - - public String getApplicationName() { - return applicationName; - } - - public void setApplicationName(String applicationName) { - this.applicationName = applicationName; - } - - public List<String> getScopes() { - return scopes; - } - - public void setScopes(List<String> scopes) { - this.scopes = scopes; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-drive/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-google-drive/src/main/resources/META-INF/spring.factories b/components/camel-google-drive/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 360b54c..0000000 --- a/components/camel-google-drive/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.google.drive.springboot.GoogleDriveComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java b/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.java deleted file mode 100644 index ef72fd8..0000000 --- a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentAutoConfiguration.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.google.mail.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.google.mail.GoogleMailComponent; -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(GoogleMailComponentConfiguration.class) -public class GoogleMailComponentAutoConfiguration { - - @Bean(name = "google-mail-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GoogleMailComponent.class) - public GoogleMailComponent configureGoogleMailComponent( - CamelContext camelContext, - GoogleMailComponentConfiguration configuration) throws Exception { - GoogleMailComponent component = new GoogleMailComponent(); - 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-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java b/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java deleted file mode 100644 index 7896172..0000000 --- a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java +++ /dev/null @@ -1,160 +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.google.mail.springboot; - -import java.util.List; -import org.apache.camel.component.google.mail.GoogleMailClientFactory; -import org.apache.camel.component.google.mail.GoogleMailConfiguration; -import org.apache.camel.component.google.mail.internal.GoogleMailApiName; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The google-mail component provides access to Google Mail. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.google-mail") -public class GoogleMailComponentConfiguration { - - /** - * To use the shared configuration. Properties of the shared configuration - * can also be set individually. - */ - private GoogleMailConfiguration configuration; - /** - * To use the GoogleCalendarClientFactory as factory for creating the - * client. Will by default use BatchGoogleMailClientFactory - */ - private GoogleMailClientFactory clientFactory; - /** - * What kind of operation to perform - */ - private GoogleMailApiName apiName; - /** - * What sub operation to use for the selected operation - */ - private String methodName; - /** - * Client ID of the mail application - */ - private String clientId; - /** - * Client secret of the mail application - */ - private String clientSecret; - /** - * OAuth 2 access token. This typically expires after an hour so - * refreshToken is recommended for long term usage. - */ - private String accessToken; - /** - * OAuth 2 refresh token. Using this the Google Calendar component can - * obtain a new accessToken whenever the current one expires - a necessity - * if the application is long-lived. - */ - private String refreshToken; - /** - * Google mail application name. Example would be camel-google-mail/1.0 - */ - private String applicationName; - /** - * Specifies the level of permissions you want a mail application to have to - * a user account. See https://developers.google.com/gmail/api/auth/scopes - * for more info. - */ - private List<String> scopes; - - public GoogleMailConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(GoogleMailConfiguration configuration) { - this.configuration = configuration; - } - - public GoogleMailClientFactory getClientFactory() { - return clientFactory; - } - - public void setClientFactory(GoogleMailClientFactory clientFactory) { - this.clientFactory = clientFactory; - } - - public GoogleMailApiName getApiName() { - return apiName; - } - - public void setApiName(GoogleMailApiName apiName) { - this.apiName = apiName; - } - - public String getMethodName() { - return methodName; - } - - public void setMethodName(String methodName) { - this.methodName = methodName; - } - - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public String getClientSecret() { - return clientSecret; - } - - public void setClientSecret(String clientSecret) { - this.clientSecret = clientSecret; - } - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public String getRefreshToken() { - return refreshToken; - } - - public void setRefreshToken(String refreshToken) { - this.refreshToken = refreshToken; - } - - public String getApplicationName() { - return applicationName; - } - - public void setApplicationName(String applicationName) { - this.applicationName = applicationName; - } - - public List<String> getScopes() { - return scopes; - } - - public void setScopes(List<String> scopes) { - this.scopes = scopes; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-google-mail/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-google-mail/src/main/resources/META-INF/spring.factories b/components/camel-google-mail/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 0640543..0000000 --- a/components/camel-google-mail/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.google.mail.springboot.GoogleMailComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageAutoConfiguration.java b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageAutoConfiguration.java deleted file mode 100644 index b5efa61..0000000 --- a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.groovy.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.language.groovy.GroovyLanguage; -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(GroovyLanguageConfiguration.class) -public class GroovyLanguageAutoConfiguration { - - @Bean(name = "groovy-language") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GroovyLanguage.class) - public GroovyLanguage configureGroovyLanguage(CamelContext camelContext, - GroovyLanguageConfiguration configuration) throws Exception { - GroovyLanguage language = new GroovyLanguage(); - if (language instanceof CamelContextAware) { - ((CamelContextAware) language).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), language, parameters); - return language; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageConfiguration.java b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageConfiguration.java deleted file mode 100644 index 8b34501..0000000 --- a/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/springboot/GroovyLanguageConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.language.groovy.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For Groovy expressions and predicates - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.language.groovy") -public class GroovyLanguageConfiguration { - - /** - * Whether to trim the value to remove leading and trailing whitespaces and - * line breaks - */ - private Boolean trim = true; - - public Boolean getTrim() { - return trim; - } - - public void setTrim(Boolean trim) { - this.trim = trim; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-groovy/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-groovy/src/main/resources/META-INF/spring.factories b/components/camel-groovy/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 51aabcc..0000000 --- a/components/camel-groovy/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.language.groovy.springboot.GroovyLanguageAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.java deleted file mode 100644 index c3c66df..0000000 --- a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatAutoConfiguration.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.component.gson.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.gson.GsonDataFormat; -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(GsonDataFormatConfiguration.class) -public class GsonDataFormatAutoConfiguration { - - @Bean(name = "json-gson-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GsonDataFormat.class) - public GsonDataFormat configureGsonDataFormat(CamelContext camelContext, - GsonDataFormatConfiguration configuration) throws Exception { - GsonDataFormat dataformat = new GsonDataFormat(); - 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-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java deleted file mode 100644 index c4324a6..0000000 --- a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java +++ /dev/null @@ -1,245 +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.gson.springboot; - -import org.apache.camel.component.gson.GsonDataFormat; -import org.apache.camel.model.dataformat.JsonLibrary; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Gson support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.json-gson") -public class GsonDataFormatConfiguration { - - /** - * Lookup and use the existing ObjectMapper with the given id when using - * Jackson. - */ - private String objectMapper; - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint = false; - /** - * Which json library to use. - */ - private JsonLibrary library = JsonLibrary.Gson; - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * When marshalling a POJO to JSON you might want to exclude certain fields - * from the JSON output. With Jackson you can use JSON views to accomplish - * this. This option is to refer to the class which has JsonView annotations - */ - private Class jsonView; - /** - * If you want to marshal a pojo to JSON and the pojo has some fields with - * null values. And you want to skip these null values you can set this - * option to NOT_NULL - */ - private String include; - /** - * Used for JMS users to allow the JMSType header from the JMS spec to - * specify a FQN classname to use to unmarshal to. - */ - private Boolean allowJmsType = false; - /** - * Refers to a custom collection type to lookup in the registry to use. This - * option should rarely be used but allows to use different collection types - * than java.util.Collection based as default. - */ - private String collectionTypeName; - /** - * To unarmshal to a List of Map or a List of Pojo. - */ - private Boolean useList = false; - /** - * Whether to enable the JAXB annotations module when using jackson. When - * enabled then JAXB annotations can be used by Jackson. - */ - private Boolean enableJaxbAnnotationModule = false; - /** - * To use custom Jackson modules com.fasterxml.jackson.databind.Module - * specified as a String with FQN class names. Multiple classes can be - * separated by comma. - */ - private String moduleClassNames; - /** - * To use custom Jackson modules referred from the Camel registry. Multiple - * modules can be separated by comma. - */ - private String moduleRefs; - /** - * Set of features to enable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String enableFeatures; - /** - * Set of features to disable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String disableFeatures; - /** - * Adds permissions that controls which Java packages and classes XStream is - * allowed to use during unmarshal from xml/json to Java beans. A permission - * must be configured either here or globally using a JVM system property. - * The permission can be specified in a syntax where a plus sign is allow - * and minus sign is deny. Wildcards is supported by using . as prefix. For - * example to allow com.foo and all subpackages then specfy com.foo.. - * Multiple permissions can be configured separated by comma such as - * com.foo.-com.foo.bar.MySecretBean. The following default permission is - * always included: -java.lang.java.util. unless its overridden by - * specifying a JVM system property with they key - * org.apache.camel.xstream.permissions. - */ - private String permissions; - - public String getObjectMapper() { - return objectMapper; - } - - public void setObjectMapper(String objectMapper) { - this.objectMapper = objectMapper; - } - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } - - public JsonLibrary getLibrary() { - return library; - } - - public void setLibrary(JsonLibrary library) { - this.library = library; - } - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public Class getJsonView() { - return jsonView; - } - - public void setJsonView(Class jsonView) { - this.jsonView = jsonView; - } - - public String getInclude() { - return include; - } - - public void setInclude(String include) { - this.include = include; - } - - public Boolean getAllowJmsType() { - return allowJmsType; - } - - public void setAllowJmsType(Boolean allowJmsType) { - this.allowJmsType = allowJmsType; - } - - public String getCollectionTypeName() { - return collectionTypeName; - } - - public void setCollectionTypeName(String collectionTypeName) { - this.collectionTypeName = collectionTypeName; - } - - public Boolean getUseList() { - return useList; - } - - public void setUseList(Boolean useList) { - this.useList = useList; - } - - public Boolean getEnableJaxbAnnotationModule() { - return enableJaxbAnnotationModule; - } - - public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) { - this.enableJaxbAnnotationModule = enableJaxbAnnotationModule; - } - - public String getModuleClassNames() { - return moduleClassNames; - } - - public void setModuleClassNames(String moduleClassNames) { - this.moduleClassNames = moduleClassNames; - } - - public String getModuleRefs() { - return moduleRefs; - } - - public void setModuleRefs(String moduleRefs) { - this.moduleRefs = moduleRefs; - } - - public String getEnableFeatures() { - return enableFeatures; - } - - public void setEnableFeatures(String enableFeatures) { - this.enableFeatures = enableFeatures; - } - - public String getDisableFeatures() { - return disableFeatures; - } - - public void setDisableFeatures(String disableFeatures) { - this.disableFeatures = disableFeatures; - } - - public String getPermissions() { - return permissions; - } - - public void setPermissions(String permissions) { - this.permissions = permissions; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-gson/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-gson/src/main/resources/META-INF/spring.factories b/components/camel-gson/src/main/resources/META-INF/spring.factories deleted file mode 100644 index a07ad8e..0000000 --- a/components/camel-gson/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.gson.springboot.GsonDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentAutoConfiguration.java b/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentAutoConfiguration.java deleted file mode 100644 index 140c1e7..0000000 --- a/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentAutoConfiguration.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.guava.eventbus.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.guava.eventbus.GuavaEventBusComponent; -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(GuavaEventBusComponentConfiguration.class) -public class GuavaEventBusComponentAutoConfiguration { - - @Bean(name = "guava-eventbus-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(GuavaEventBusComponent.class) - public GuavaEventBusComponent configureGuavaEventBusComponent( - CamelContext camelContext, - GuavaEventBusComponentConfiguration configuration) throws Exception { - GuavaEventBusComponent component = new GuavaEventBusComponent(); - 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-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java b/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java deleted file mode 100644 index 932a8b5..0000000 --- a/components/camel-guava-eventbus/src/main/java/org/apache/camel/component/guava/eventbus/springboot/GuavaEventBusComponentConfiguration.java +++ /dev/null @@ -1,59 +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.guava.eventbus.springboot; - -import com.google.common.eventbus.EventBus; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The guava-eventbus component provides integration bridge between Camel and - * Google Guava EventBus. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.guava-eventbus") -public class GuavaEventBusComponentConfiguration { - - /** - * To use the given Guava EventBus instance - */ - private EventBus eventBus; - /** - * The interface with method(s) marked with the Subscribe annotation. - * Dynamic proxy will be created over the interface so it could be - * registered as the EventBus listener. Particularly useful when creating - * multi-event listeners and for handling DeadEvent properly. This option - * cannot be used together with eventClass option. - */ - private Class listenerInterface; - - public EventBus getEventBus() { - return eventBus; - } - - public void setEventBus(EventBus eventBus) { - this.eventBus = eventBus; - } - - public Class getListenerInterface() { - return listenerInterface; - } - - public void setListenerInterface(Class listenerInterface) { - this.listenerInterface = listenerInterface; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-guava-eventbus/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-guava-eventbus/src/main/resources/META-INF/spring.factories b/components/camel-guava-eventbus/src/main/resources/META-INF/spring.factories deleted file mode 100644 index c3fab29..0000000 --- a/components/camel-guava-eventbus/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.guava.eventbus.springboot.GuavaEventBusComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentAutoConfiguration.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentAutoConfiguration.java deleted file mode 100644 index 1b6f679..0000000 --- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentAutoConfiguration.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.hazelcast.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.hazelcast.HazelcastComponent; -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(HazelcastComponentConfiguration.class) -public class HazelcastComponentAutoConfiguration { - - @Bean(name = "hazelcast-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(HazelcastComponent.class) - public HazelcastComponent configureHazelcastComponent( - CamelContext camelContext, - HazelcastComponentConfiguration configuration) throws Exception { - HazelcastComponent component = new HazelcastComponent(); - 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-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentConfiguration.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentConfiguration.java deleted file mode 100644 index 2a418f7..0000000 --- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/springboot/HazelcastComponentConfiguration.java +++ /dev/null @@ -1,45 +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.hazelcast.springboot; - -import com.hazelcast.core.HazelcastInstance; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The hazelcast component allows you to work with the Hazelcast distributed - * data grid / cache. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.hazelcast") -public class HazelcastComponentConfiguration { - - /** - * The hazelcast instance reference which can be used for hazelcast - * endpoint. If you don't specify the instance reference camel use the - * default hazelcast instance from the camel-hazelcast instance. - */ - private HazelcastInstance hazelcastInstance; - - public HazelcastInstance getHazelcastInstance() { - return hazelcastInstance; - } - - public void setHazelcastInstance(HazelcastInstance hazelcastInstance) { - this.hazelcastInstance = hazelcastInstance; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-hazelcast/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-hazelcast/src/main/resources/META-INF/spring.factories b/components/camel-hazelcast/src/main/resources/META-INF/spring.factories deleted file mode 100644 index ea9aee3..0000000 --- a/components/camel-hazelcast/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.hazelcast.springboot.HazelcastComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java b/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.java deleted file mode 100644 index 7334d6a..0000000 --- a/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentAutoConfiguration.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.hbase.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.hbase.HBaseComponent; -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(HBaseComponentConfiguration.class) -public class HBaseComponentAutoConfiguration { - - @Bean(name = "hbase-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(HBaseComponent.class) - public HBaseComponent configureHBaseComponent(CamelContext camelContext, - HBaseComponentConfiguration configuration) throws Exception { - HBaseComponent component = new HBaseComponent(); - 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-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentConfiguration.java b/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentConfiguration.java deleted file mode 100644 index 4c4e2e9..0000000 --- a/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/springboot/HBaseComponentConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.hbase.springboot; - -import org.apache.hadoop.conf.Configuration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * For reading/writing from/to an HBase store (Hadoop database). - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.hbase") -public class HBaseComponentConfiguration { - - /** - * To use the shared configuration - */ - private Configuration configuration; - /** - * Maximum number of references to keep for each table in the HTable pool. - * The default value is 10. - */ - private Integer poolMaxSize; - - public Configuration getConfiguration() { - return configuration; - } - - public void setConfiguration(Configuration configuration) { - this.configuration = configuration; - } - - public Integer getPoolMaxSize() { - return poolMaxSize; - } - - public void setPoolMaxSize(Integer poolMaxSize) { - this.poolMaxSize = poolMaxSize; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-hbase/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-hbase/src/main/resources/META-INF/spring.factories b/components/camel-hbase/src/main/resources/META-INF/spring.factories deleted file mode 100644 index f38fac0..0000000 --- a/components/camel-hbase/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.hbase.springboot.HBaseComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/springboot/HdfsComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/springboot/HdfsComponentAutoConfiguration.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/springboot/HdfsComponentAutoConfiguration.java deleted file mode 100644 index ab72ef7..0000000 --- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/springboot/HdfsComponentAutoConfiguration.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.hdfs.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.hdfs.HdfsComponent; -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(HdfsComponentConfiguration.class) -public class HdfsComponentAutoConfiguration { - - @Bean(name = "hdfs-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(HdfsComponent.class) - public HdfsComponent configureHdfsComponent(CamelContext camelContext, - HdfsComponentConfiguration configuration) throws Exception { - HdfsComponent component = new HdfsComponent(); - 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