Author: ningjiang
Date: Wed Sep 19 12:21:46 2012
New Revision: 1387545
URL: http://svn.apache.org/viewvc?rev=1387545&view=rev
Log:
CAMEL-5627 the camel-zookeeper component should not share the configuration
object
Modified:
camel/trunk/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java
Modified:
camel/trunk/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java?rev=1387545&r1=1387544&r2=1387545&view=diff
==============================================================================
---
camel/trunk/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java
(original)
+++
camel/trunk/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java
Wed Sep 19 12:21:46 2012
@@ -49,11 +49,11 @@ public class ZooKeeperComponent extends
throw new CamelException("No Camel context has been provided to
this zookeeper component");
}
- ZooKeeperConfiguration config = getConfiguration();
+ ZooKeeperConfiguration config = getConfiguration().copy();
extractConfigFromUri(uri, config);
setProperties(config, parameters);
- return new ZooKeeperEndpoint(uri, this, config.copy());
+ return new ZooKeeperEndpoint(uri, this, config);
}
private void extractConfigFromUri(String remaining, ZooKeeperConfiguration
config) throws URISyntaxException {