How can i use "set_type_override_by_type" inside the register adapter

In reply to JA:

I’m assuming you want to set an override for creation in a particular register adapter, and there are other places where the same exampletype is being created that you do not want overriden. In that case you need to use by_instance overrides, not by_type.

The context is just a string; it does not have to be a real uvm_component path. As long as you can give the register adapter a unique name, you can use that name as the context for setting the override and providing it when creating the object.