ARoad0.Pattern
Interface Singleton

All Known Subinterfaces:
AcsFactoryForAcsAddon
All Known Implementing Classes:
AcsFactory, AcsFactoryMySQL, AcsFactoryUbuntu, ACSFactoryUtilityImpl, ActionAboutARoad, ActionAcsAddonGuides, ActionBasicTutorial, ActionCopy, ActionExit, ActionExportPNG, ActionHelpConcepts, ActionImportACS, ActionNewACSyst, ActionNewEligibleParty, ActionNewResource, ActionNewView, ActionOpen, ActionOpenACSyst, ActionOpenAllFullViews, ActionOpenAllNoThanViews, ActionOpenArchitecture, ActionOpenBeamer, ActionOpenGlobalStructure, ActionOpenGraphicView, ActionOpenMainFrame, ActionOpenSketcher, ActionRemove, ActionSave, ActionSaveAll, ActionUtilities, AssociateUtilityImpl, BaseManagerImpl, BaseUtilityImpl, BaseUtilityMySQLImpl, BaseUtilityUbuntuImpl, BeamerManager, Desktop, DialogBox, IconPolice, InsideDesktop, InternalFrame, InternalFrameModel, ISFactoryUtilityImpl, ViewInBase_Facade

public interface Singleton

from Grand patterns, the singleton pattern ensures that only one instance of a class is created. All objects that use an instance of that class use the same private instance that is got by ImplementingSingletonClass.getInstance(). It's not possible to put the getInstance() method in the interface, because the return type is the class implementing the interface. So, the fields and method of the instance are put in the source code of this interface as comments.