This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 56acfb6069d4beb9b92a952f47e5b7197e260788
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Jul 1 11:20:55 2019 +0200

    Polished
---
 .../config/CamelMicroProfilePropertiesSource.java    | 20 +++-----------------
 .../component/properties/PropertiesComponent.java    |  1 -
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git 
a/components/camel-microprofile-config/src/main/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSource.java
 
b/components/camel-microprofile-config/src/main/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSource.java
index 158605d..65b0d52 100644
--- 
a/components/camel-microprofile-config/src/main/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSource.java
+++ 
b/components/camel-microprofile-config/src/main/java/org/apache/camel/component/microprofile/config/CamelMicroProfilePropertiesSource.java
@@ -19,39 +19,25 @@ package org.apache.camel.component.microprofile.config;
 import java.util.Optional;
 import java.util.Properties;
 
-import org.apache.camel.CamelContext;
-import org.apache.camel.CamelContextAware;
-import org.apache.camel.component.properties.PropertiesComponent;
 import org.apache.camel.component.properties.PropertiesSource;
 import org.apache.camel.support.service.ServiceSupport;
 import org.apache.camel.util.OrderedProperties;
 import org.eclipse.microprofile.config.Config;
 import org.eclipse.microprofile.config.ConfigProvider;
-import org.eclipse.microprofile.config.spi.ConfigSource;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * To use Camel's {@link PropertiesComponent} as an Eclipse {@link 
ConfigSource}.
+ * The microprofile-config component is used for bridging the Eclipse 
MicroProfile Config with Camels
+ * properties component. This allows to use configuration management from 
Eclipse MicroProfile with Camel.
  */
-public class CamelMicroProfilePropertiesSource extends ServiceSupport 
implements CamelContextAware, PropertiesSource {
+public class CamelMicroProfilePropertiesSource extends ServiceSupport 
implements PropertiesSource {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(CamelMicroProfilePropertiesSource.class);
 
-    private CamelContext camelContext;
     private final Properties properties = new OrderedProperties();
 
     @Override
-    public CamelContext getCamelContext() {
-        return camelContext;
-    }
-
-    @Override
-    public void setCamelContext(CamelContext camelContext) {
-        this.camelContext = camelContext;
-    }
-
-    @Override
     public String getName() {
         return "CamelMicroProfilePropertiesSource";
     }
diff --git 
a/components/camel-properties/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
 
b/components/camel-properties/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
index 120fcb6..eeafbfb 100644
--- 
a/components/camel-properties/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
+++ 
b/components/camel-properties/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
@@ -35,7 +35,6 @@ import org.apache.camel.api.management.ManagedAttribute;
 import org.apache.camel.api.management.ManagedOperation;
 import org.apache.camel.api.management.ManagedResource;
 import org.apache.camel.spi.FactoryFinder;
-import org.apache.camel.spi.HeadersMapFactory;
 import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.annotations.Component;
 import org.apache.camel.support.DefaultComponent;

Reply via email to