How can i use "set_type_override_by_type" inside the register adapter

In reply to chr_sue:

Hi,
I know that i cannot use

seq_item_0 = exampletype::type_id::create("seq_item_0",this);

That is what i have tried to say in my message. That is the reason why the “set_type_override_by_type” does not work. (without specifying the context the override in create does not work)
I want to use the override for the same reasons we use “set_type_override_by_type” in uvm components. i have a base sequence item and i want to specialize that sequence item. The specialized sequence item has some methods i would like to use in the adapter (in bus2reg, reg2bus functions). Obviously, i can avoid the problem implementing again these methods i need using the base class, but that is exactly what i want to avoid/spare. (Besides, the derived class can have new static parameters/generics that are important for the bus2reg/reg2bus)

The question is if i can use e.g. something like

seq_item_0 = exampletype::type_id::create("seq_item_0",.cntx("correctcontext"));

I would like that somehow the “create” find the factory reconfiguration for that xfer (sequence item) in the adapter. Using “cntx” with the correct path would be an idea. Is it possible to make the “set_type_override_by_type” work inside the adapter?