I have an object which is instantiated during compilation according to the build configuration. As far as the surrounding software considered, the object exposes the same interface. I would like to model the fact that the instantiation decision is taken during compilation (i.e. static polymorphism), as opposed to the usual dynamic polymorphism.
Is there a way to depict a static polymorphism in UML class diagram?
Here is more or less what I need:

Obviously, only one of the above type definitions will be instantiated at compilation.