Labels

algorithms (22) Design Patterns (20) java (19) linux (14) Snippet (13) service mix (6) soa (4)

Composite

Composite

This Pattern is useful

  1. when there is a need for hierarchical structure
  2. when the leaf and non leaf are to be treated alike 
Example GUI: a text field is the simplest component
a form can be a complex component which can have a field.

No comments:

Post a Comment

Search 24 Bytes