Skip to Content
Entwurfsmuster von Kopf bis Fubß
book

Entwurfsmuster von Kopf bis Fubß

by Eric Freeman, Elisaebth Freeman, Kathy Sierra, Bert Bates
December 2005
Beginner to intermediate
672 pages
14h 12m
German
O'Reilly Verlag
Content preview from Entwurfsmuster von Kopf bis Fubß

5.3. Interview der Woche: Geständnis eines Singletons

Muster unter der Lupe

Von Kopf bis Fuß: Wir freuen uns, Ihnen heute ein Interview mit einem Singleton-Objekt liefern zu können. Vielleicht erzählen Sie uns zu Anfang etwas über sich selbst.

Singleton: Ja, mach ich: Ich bin absolut einzigartig. Es gibt mich nur ein einziges Mal!

Von Kopf bis Fuß: Nur einmal?

Singleton: Ja, nur einmal. Ich basiere auf dem Singleton-Muster, das sicherstellt, dass es immer nur eine einzige Instanz von mir gibt.

Von Kopf bis Fuß: Ist das nicht irgendwie Verschwendung? Da hat sich jemand die Mühe gemacht, eine ausgewachsene Klasse zu entwickeln, und dann kann man aus ihr nur ein Objekt herausholen!

Singleton: Überhaupt nicht! In diesem EINEN steckt gewaltige Macht. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Netzwerke von Kopf bis Fuß

Netzwerke von Kopf bis Fuß

Al Anderson, Ryan Benedetti
JavaScript-Programmierung von Kopf bis Fuß

JavaScript-Programmierung von Kopf bis Fuß

Eric Freeman, Elisabeth Robson
Servlets und JSPs™ von Kopf bis Fuß

Servlets und JSPs™ von Kopf bis Fuß

Bryan Basham, Kathy Sierra, Bert Bates
Programmieren von Kopf bis Fuß

Programmieren von Kopf bis Fuß

David Griffiths, Paul Barry

Publisher Resources

ISBN: 9783897214217Errata Page