Does it screw into the barrel itself or does it screw into a dovetail?

I can't find anything like your describing?