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/08/31 05:07:31 UTC

[GitHub] zonghaishang commented on issue #2398: @SPI 是否设置为必填

zonghaishang commented on issue #2398: @SPI 是否设置为必填
URL: https://github.com/apache/incubator-dubbo/issues/2398#issuecomment-417553015
 
 
   Existing logic should not be modified, no reasonable demand.
   ```
   public static <T> ExtensionLoader<T> getExtensionLoader(Class<T> type) {
           if (!withExtensionAnnotation(type)) {
               throw new IllegalArgumentException();
           }
   }
   ```
   Just check that the interface belongs to SPI

----------------------------------------------------------------
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