i have a object in my application which is needed at several points. That means, there are a lot of objects, which holds a reference to this object. Is there an easy way, to spread this reference to all the other objects? One possibility might be to use a singleton. Another way is to use dependency injection. Are these ideas good practice or is there a better way to do this?
Thanks!