Revision 19092a69
ID | 19092a691d313535b0f25ddf536edfabdebc0b26 |
Implement Singleton pattern
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: Chris Stavrakakis <cstavr@grnet.gr>
Signed-off-by: Kostas Papadimitriou <kpap@grnet.gr>
Signed-off-by: Vangelis Koukis <vkoukis@grnet.gr>
Files
- added
- modified
- copied
- renamed
- deleted