Skip to content
  • Vangelis Koukis's avatar
    Implement Singleton pattern · c790169c
    Vangelis Koukis authored
    
    
    Implement Singleton pattern inside synnefo.lib.singleton.
    
    Whenever a class inherits from ArgBasedSingleton,
    attempts to call the class do not always create a new
    class instance, but return pre-existing, already made objects.
    
    All of the arguments to the class call must match, to return a
    pre-existing object. Rationale: when the ModularBackend from
    snf-pithos-backend is converted to inherit from ArgBasedSingleton,
    attempts to create a new backend instance with the same settings will
    re-use the existing backend object.
    
    Signed-off-by: default avatarChris Stavrakakis <cstavr@grnet.gr>
    Signed-off-by: default avatarKostas Papadimitriou <kpap@grnet.gr>
    Signed-off-by: default avatarVangelis Koukis <vkoukis@grnet.gr>
    c790169c