luyunfeng commented on issue #2222: 禁止某个Filter的执行
URL: 
https://github.com/apache/incubator-dubbo/issues/2222#issuecomment-412009725
 
 
   在 AbstractInterfaceConfig 中 直接限制住了 ,所以非dubbo framework下的会出现```No such 
extension....```异常
   ```java
   public void setFilter(String filter) {
           checkMultiExtension(Filter.class, "filter", filter);
           this.filter = filter;
       }
   ```
   ```java
   protected static void checkMultiExtension(Class<?> type, String property, 
String value) {
           checkMultiName(property, value);
           if (value != null && value.length() > 0) {
               String[] values = value.split("\\s*[,]+\\s*");
               String[] var4 = values;
               int var5 = values.length;
   
               for(int var6 = 0; var6 < var5; ++var6) {
                   String v = var4[var6];
                   if (v.startsWith("-")) {
                       v = v.substring(1);
                   }
   
                   if (!"default".equals(v) && 
!ExtensionLoader.getExtensionLoader(type).hasExtension(v)) {
                       throw new IllegalStateException("No such extension " + v 
+ " for " + property + "/" + type.getName());
                   }
               }
           }
   
       }
   ```
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to