How can i use "set_type_override_by_type" inside the register adapter

In reply to dave_59:

Yes Dave. I can use the override by_instance.

Could you provide a small example with the adapter?, maybe i can find what i am doing wrong. I have tried several strings and it does not work.