Sounds to me that you are searching for a singleton pattern: See the our wiki article.