skip to main | skip to sidebar

Scriptlandia

Programming Languages related Thoughts, Tips & Tricks

Wednesday, January 30, 2008

Design Patterns in Beanshell (ready to use)

I wrote scripts in Beanshell to demonstrate each out of 23 GoF DP. It helps to see the idea behind particular DP in "compressed" format. And, of course, you can test it right away by executing the script.

Creational Patterns

Abstract Factory
Builder
Factory Method
Prototype
Singleton
Singleton (corrected)
Lazy Initialization

Structural Patterns

Adapter
Bridge
Composite
Decorator
Facade
Flyweight
Proxy

Behavioral Patterns

Chain of Responsibility
Command
Interpreter
Iterator
Mediator
Memento
Observer
State
Strategy
Template Method
Template Method (corrected)
Visitor

Enterprise Patterns

MVC
Data Access Object
Map-Reduce

My main sources:

1. Wikipedia
2. FluffyCat
3. JavaCamp
4. The Design Patterns - Java Companion (book)
Posted by Alexander Shvets at 12:41 PM 1 comment:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

My Blog List

  • java.blogs Recent Entries
    -

About Me

My photo
Alexander Shvets
Plainsboro, New Jersey, United States
View my complete profile
View Alexander Shvets's profile on LinkedIn

Blog Archive

  • ►  2011 (1)
    • ►  January (1)
  • ►  2009 (2)
    • ►  February (2)
  • ▼  2008 (9)
    • ►  September (1)
    • ►  June (1)
    • ►  April (1)
    • ►  February (5)
    • ▼  January (1)
      • Design Patterns in Beanshell (ready to use)
  • ►  2007 (23)
    • ►  December (3)
    • ►  November (4)
    • ►  September (4)
    • ►  August (3)
    • ►  May (1)
    • ►  April (3)
    • ►  March (5)
  • ►  2006 (25)
    • ►  December (2)
    • ►  November (1)
    • ►  September (2)
    • ►  August (2)
    • ►  June (2)
    • ►  May (6)
    • ►  April (9)
    • ►  March (1)

Links

  • Web 2.0 awards
  • Annual Webby Awards Nominees & Winners
  • 50 Coolest Websites (2006)
  • 25 Sites you cannot live without (Russian)
  • 50 Best Websites 2007 (Time)
  • The Top 50 Proprietary Programs that Drive You Crazy - and Their Open Source Alternatives