You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/31 09:39:13 UTC

[GitHub] chickenlj opened a new issue #2158: Adaptive extension could not return the right SPI extension.

chickenlj opened a new issue #2158: Adaptive extension could not return the right SPI extension.
URL: https://github.com/apache/incubator-dubbo/issues/2158
 
 
   If I have an SPI configured like this:
   ```java
   @SPI("nop")
   public interface DynamicConfigurationFactory {
       @Adaptive({"key1", "key2"})
       DynamicConfiguration getDynamicConfiguration(URL url);
   }
   ```properties
   zookeeper=org.apache.dubbo.config.dynamic.support.archaius.ArchaiusDynamicConfigurationFactory
   archaius=org.apache.dubbo.config.dynamic.support.archaius.ArchaiusDynamicConfigurationFactory
   apollo=org.apache.dubbo.config.dynamic.support.apollo.ApolloDynamicConfigurationFactory
   nop=org.apache.dubbo.config.dynamic.support.nop.NopDynamicConfigurationFactory
   ```
   
   1. Give a URL:
   ```
   dubbo://0.0.0.0/xxx.DemoService?key2=zookeeper
   ```
   getAdaptiveExtension() will return the `nop` extension, but according to javadoc, it should return 'zookeeper'.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org