Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List of Patterns used in Java SE

 
Nachiket Patel
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
Lets put all patterns [with reference] used in Java SE.

Template:
[---PatternName---]
Ref: [ClassName]

Detail:

Regards,
Nachiket
 
Nachiket Patel
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[---Singleton---]
Ref: [java.lang.Runtime]

Detail:
Runtime.getRuntime() returns single instance of Runtime.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about the template info, but one of my favorite patterns is the Factory pattern.
 
Krishnamurthy Sivakumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Decorator pattern - java.io.*Stream
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[---factory method---]
Ref: [Calendar], [DateFormat], [NumberFormat]

[---Iterator patter---]
Ref:[Java.util.Iterator]
 
Chaminda Amarasinghe
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[---MVC---]
Ref: [Button]

All swing components adhere the MVC
 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Flyweight Pattern
--> java.lang.String
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic