java - Multiton - real world example? -


i'm reviewing design patterns. came across 1 multiton, find difficult think of real-worlds usage example.

so what's main field of application strengths of multiton pattern?

telephonymanager telephonymanager = (telephonymanager) getsystemservice(context.telephony_service);  inputmethodmanager imm = (inputmethodmanager) getsystemservice(context.input_method_service);  clipboardmanager clipboard = (clipboardmanager) getsystemservice(clipboard_service); 

this multitone, real life example


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -