camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggrzy...@apache.org
Subject [1/2] git commit: [CAMEL-7456] Preserve get/set contract
Date Mon, 21 Jul 2014 15:12:05 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x 821d568ab -> 3039e87fe


[CAMEL-7456] Preserve get/set contract

(cherry picked from commit e8ce1da8ec65b68d9609efc4b0b2581034ec4fe1)


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3039e87f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3039e87f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3039e87f

Branch: refs/heads/camel-2.13.x
Commit: 3039e87fe12e38f4b437273fe7c7047b3505ccc8
Parents: 885f1bb
Author: Grzegorz Grzybek <gr.grzybek@gmail.com>
Authored: Mon Jul 21 16:07:14 2014 +0200
Committer: Grzegorz Grzybek <gr.grzybek@gmail.com>
Committed: Mon Jul 21 17:11:05 2014 +0200

----------------------------------------------------------------------
 .../camel/component/properties/PropertiesComponent.java   | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3039e87f/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
b/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
index 3a7c13d..24b2eba 100644
--- a/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
+++ b/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
@@ -76,7 +76,9 @@ public class PropertiesComponent extends DefaultComponent {
     private boolean ignoreMissingLocation;
     private boolean cache = true;
     private String propertyPrefix;
+    private String propertyPrefixResolved;
     private String propertySuffix;
+    private String propertySuffixResolved;
     private boolean fallbackToUnaugmentedProperty = true;
     private String prefixToken = DEFAULT_PREFIX_TOKEN;
     private String suffixToken = DEFAULT_SUFFIX_TOKEN;
@@ -156,7 +158,7 @@ public class PropertiesComponent extends DefaultComponent {
         
         if (propertiesParser instanceof AugmentedPropertyNameAwarePropertiesParser) {
             return ((AugmentedPropertyNameAwarePropertiesParser) propertiesParser).parseUri(uri,
prop, prefixToken, suffixToken,
-                                                                                        
   propertyPrefix, propertySuffix, fallbackToUnaugmentedProperty);
+                                                                                        
   propertyPrefixResolved, propertySuffixResolved, fallbackToUnaugmentedProperty);
         } else {
             return propertiesParser.parseUri(uri, prop, prefixToken, suffixToken);
         }
@@ -204,8 +206,9 @@ public class PropertiesComponent extends DefaultComponent {
 
     public void setPropertyPrefix(String propertyPrefix) {
         this.propertyPrefix = propertyPrefix;
+        this.propertyPrefixResolved = propertyPrefix;
         if (ObjectHelper.isNotEmpty(this.propertyPrefix)) {
-            this.propertyPrefix = FilePathResolver.resolvePath(this.propertyPrefix);
+            this.propertyPrefixResolved = FilePathResolver.resolvePath(this.propertyPrefix);
         }
     }
 
@@ -215,8 +218,9 @@ public class PropertiesComponent extends DefaultComponent {
 
     public void setPropertySuffix(String propertySuffix) {
         this.propertySuffix = propertySuffix;
+        this.propertySuffixResolved = propertySuffix;
         if (ObjectHelper.isNotEmpty(this.propertySuffix)) {
-            this.propertySuffix = FilePathResolver.resolvePath(this.propertySuffix);
+            this.propertySuffixResolved = FilePathResolver.resolvePath(this.propertySuffix);
         }
     }
 


Mime
View raw message