Uvm_config_db / uvm_resource_db for registering virtual interfaces

In reply to chr_sue:

So the testbench would look like this


module top
interface apb_interface apb_tx_if();
interface apb_interface apb_rx_if();

initial begin
  uvm_resource_db#(...)
end

endmodule

How would you set the resource_db with the apb interfaces ?