@Override
    public String getInterfaceId() {
        if (StringUtils.equals(RpcConstants.PROTOCOL_TYPE_TRIPLE, this.getProtocol())) {
            Class enclosingClass = this.getProxyClass().getEnclosingClass();
            Method sofaStub = null;
            String serviceName = interfaceId;
            try {
                sofaStub = enclosingClass.getDeclaredMethod("getServiceName");
                serviceName = (String) sofaStub.invoke(null);
            } catch (Throwable e) {
                //ignore
            }
            return serviceName;
        } else {
            return interfaceId;
        }
    }
Sets provider info listener.

@param providerInfoListener the provider info listener
@return the provider info listener
core/api/src/main/java/com/alipay/sofa/rpc/config/ConsumerConfig.java