Specification Design Pattern

Specification Design Pattern

This article describes the Specification design pattern. This is a behavioral design pattern, a category of design pattern used by software engineers, when writing computer programs.

Introduction

The Specification pattern is a design pattern, used in software engineering to simplify interfaces and decouple classes. Rather than having a number of methods for retrieving information under specific conditions, the class simply has a GetBySpecification method which takes the conditions (specification) as a parameter. The specifications are a class themselves that has a IsSatisfiedBy method, which determines which items are returned, based on the specifications.

It is defined as a behavioral design pattern, because the returned data and resulting actions are dependant on the specifications.

Return to Top


Benefits

This pattern helps to decouple classes, because methods are simplified to a generic call, which does not need to know the conditions.

Return to Top


Examples of the pattern

[please contribute]

 

 

Return to Top


See Also

Link to domain parent articles and related articles in TechNet Wiki.

 

Return to Top


Community Resources

These are the external links, including links to Microsoft and TechNet sites that are non-Wiki
  • [Please contribute]

 

Return to Top


References section

Use this section if you pulled source material and ideas from other sites, blogs, or forums. Make sure you have permission from authors to use their material.
  • [Please contribute]

 

 

Return to Top


Leave a Comment
  • Please add 3 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • XAML guy edited Revision 1. Comment: tweak

  • XAML guy edited Original. Comment: tidied sections

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • XAML guy edited Original. Comment: tidied sections

  • XAML guy edited Revision 1. Comment: tweak

Page 1 of 1 (2 items)