public S setFilter(List<String> filter) {
        this.filter = filter;
        return castThis();
    }
Sets registry.

@param registry the registry
@return the registry
core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java