cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Bosschaert <>
Subject Re: CXF-DOSGi Zookeeper discovery data transformation
Date Mon, 25 Jun 2012 15:48:20 GMT
Hi Sergey,

On 25 June 2012 11:32, Sergey Beryozkin <> wrote:
>> The plugin also allows you to change the path where it is changed by
>> returning a different path, so for example in my case the fullPath
>> variable is
>>   /osgi/service_registry/org/acme/foo/SomeInterface/
>> It would allow you to change that to something like
>>   /osgi/service_registry/org/acme/foo/SomeInterface/
> Sounds good. Minor observation is I guess that the plugin would only be
> interested in replacing the the "" part, and if yes then
> may be it will be marginally simpler to have:
> String process(Map<String, Object> mutableProperties,
>               String registryPath,
>               String hostInformation);
> String actualHostInfo = plugin.process(properties,
> "/osgi/service_registry/org/acme/foo/SomeInterface",
>                                       "");
> Not sure if it make sense :-). Having a plugin to do a basic parsing of the
> fullPath would not ne a big issue I guess :-)

Good point. Changing the registryPath doesn't make sense, so I removed
it completely from the callback.
It now has the following API:

    String process(Map<String, Object> mutableProperties, String endpointKey);

I've committed it all with unit tests in r1353598.



View raw message