public ExtensionClass setCode(byte code) {
        this.code = code;
        return this;
    }
Sets singleton.

@param singleton the singleton
core/api/src/main/java/com/alipay/sofa/rpc/ext/ExtensionClass.java