How to register logic varibale in uvm factory

i am trying to register logic [2:0] addr in factory i wanted to know which filed macro do i need to use for that and also how it behave

In reply to devarajuluktl:

You are confusing factory registration of a class camp with field registration of a class variable.

We do not recommend field registration with macros. See MacroCostBenefit | Verification Academy