James Bond © MGM
This is a simple gun barrel replacement. It involved tracking each frame of an already composited gun barrel and removing the inside.
Then, filmed an actor against a green screen, and put them behind the gun barrel, keying the green and replacing it with white.
Thanks to Joe Ashwell for being my Joe Blond. :P